Fix parameter missing in Python 3.7

This commit is contained in:
Veronica Berglyd Olsen
2022-11-07 10:45:53 +01:00
parent 615ee2958a
commit 6f6fe876e2
2 changed files with 8 additions and 3 deletions
+2 -1
View File
@@ -582,7 +582,8 @@ def testCoreProject_Methods(monkeypatch, mockGUI, fncDir, mockRnd):
# Write entry
statsFile = theProject.storage.getMetaFile(nwFiles.SESS_STATS)
assert isinstance(statsFile, Path)
statsFile.unlink(missing_ok=True)
if statsFile.exists():
statsFile.unlink()
theProject._projOpened = 1600002000
theProject.data._initCounts = [50, 50]