explicitly close the file before removal

This commit is contained in:
Krasimir Angelov
2023-01-27 16:00:29 +01:00
parent 0e81dd7ada
commit 1e3eb44843

View File

@@ -71,6 +71,7 @@ def test_readNGF(NGF):
def test_newNGF_file(NGF):
PGF = newNGF("empty", "./empty.ngf")
assert len(PGF.categories) == 0
del PGF # closes the file
os.remove("./empty.ngf") # cleanup
def test_newNGF_memory(NGF):