From 1e3eb44843da351e888d1bb5a7d8a98704091b7b Mon Sep 17 00:00:00 2001 From: Krasimir Angelov Date: Fri, 27 Jan 2023 16:00:29 +0100 Subject: [PATCH] explicitly close the file before removal --- src/runtime/python/tests/test_basic.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/runtime/python/tests/test_basic.py b/src/runtime/python/tests/test_basic.py index 9ee83b32a..a287383e0 100644 --- a/src/runtime/python/tests/test_basic.py +++ b/src/runtime/python/tests/test_basic.py @@ -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):