48f0dc6a00 to pass on unix too

This commit is contained in:
Andrej730
2024-08-28 11:29:36 +05:00
parent 1b49515d9f
commit 747a39b440
+3 -1
View File
@@ -63,4 +63,6 @@ class TestPurgeHdf5Cache(NewFile):
loaded_file = open(loaded_file_path, "w")
subject.purge_hdf5_cache()
assert [f for f in cache_dir.iterdir() if f.suffix == ".h5"] == [loaded_file_path]
# On Unix loaded files are not locked.
paths = [loaded_file_path] if os.name == "nt" else []
assert [f for f in cache_dir.iterdir() if f.suffix == ".h5"] == paths