mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
explicitly close the file before removal
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user