Skip to content

Commit

Permalink
Fix sometimes failing backup test
Browse files Browse the repository at this point in the history
  • Loading branch information
vkbo committed Jul 18, 2023
1 parent 36c0349 commit 8e3a258
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_core/test_core_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -704,9 +704,9 @@ def testCoreProject_Backup(monkeypatch, mockGUI, fncPath, tstPaths):
assert theProject.backupProject(doNotify=True) is True

theFiles = list((tstPaths.tmpDir / "Test Minimal").iterdir())
assert len(theFiles) == 1
assert len(theFiles) in (1, 2) # Sometimes 2 due to clock tick

theZip = theFiles[0].name
theZip = theFiles[-1].name
assert theZip[:12] == "Backup from "
assert theZip[-4:] == ".zip"

Expand Down

0 comments on commit 8e3a258

Please sign in to comment.