From 3e7f3609af701c3f66ac9ba9de1c666c2650ce57 Mon Sep 17 00:00:00 2001 From: "Veronica K. B. Olsen" Date: Sat, 1 Jun 2019 21:19:33 +0200 Subject: [PATCH] Only compare tagsindex if python version >= 3.6 --- tests/test_gui.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_gui.py b/tests/test_gui.py index 02b6bef1..3cecee17 100644 --- a/tests/test_gui.py +++ b/tests/test_gui.py @@ -2,7 +2,7 @@ """novelWriter Main GUI Class Tester """ -import nw, pytest +import nw, pytest, sys from nwtools import * from os import path, unlink @@ -245,8 +245,9 @@ def testMainWindows(qtbot, nwTempGUI, nwRef): assert cmpFiles(refFile, path.join(nwRef,"gui","1_1489056e0916_main.nwd")) refFile = path.join(nwTempGUI,"data_7","688b6ef52555_main.nwd") assert cmpFiles(refFile, path.join(nwRef,"gui","1_688b6ef52555_main.nwd")) - refFile = path.join(nwTempGUI,"meta","tagsIndex.json") - assert cmpFiles(refFile, path.join(nwRef,"gui","1_tagsIndex.json")) + if sys.version_info[0] >= 3 and sys.version_info[1] >= 6: + refFile = path.join(nwTempGUI,"meta","tagsIndex.json") + assert cmpFiles(refFile, path.join(nwRef,"gui","1_tagsIndex.json")) nwGUI.closeMain() # qtbot.stopForInteraction()