Signed-off-by: Robert Kuska <rkuska@xxxxxxxxxx> --- sepolgen/tests/test_audit.py | 1 + sepolgen/tests/test_interfaces.py | 1 + sepolgen/tests/test_objectmodel.py | 1 + 3 files changed, 3 insertions(+) diff --git a/sepolgen/tests/test_audit.py b/sepolgen/tests/test_audit.py index c72ca61..6379954 100644 --- a/sepolgen/tests/test_audit.py +++ b/sepolgen/tests/test_audit.py @@ -166,6 +166,7 @@ class TestAuditParser(unittest.TestCase): f = open("audit.txt") a = sepolgen.audit.AuditParser() a.parse_file(f) + f.close() self.assertEqual(len(a.avc_msgs), 21) self.assertEqual(len(a.compute_sid_msgs), 0) self.assertEqual(len(a.invalid_msgs), 0) diff --git a/sepolgen/tests/test_interfaces.py b/sepolgen/tests/test_interfaces.py index a10ce2d..a55f7db 100644 --- a/sepolgen/tests/test_interfaces.py +++ b/sepolgen/tests/test_interfaces.py @@ -268,6 +268,7 @@ class TestInterfaceSet(unittest.TestCase): i2 = interfaces.InterfaceSet() f = open("output") i2.from_file(f) + f.close() if_status = [False, False, False] for ifv in i2.interfaces.values(): if ifv.name == "files_search_usr": diff --git a/sepolgen/tests/test_objectmodel.py b/sepolgen/tests/test_objectmodel.py index 19c9eac..b503672 100644 --- a/sepolgen/tests/test_objectmodel.py +++ b/sepolgen/tests/test_objectmodel.py @@ -25,6 +25,7 @@ class TestInfoFlow(unittest.TestCase): info = sepolgen.objectmodel.PermMappings() fd = open("perm_map") info.from_file(fd) + fd.close() pm = info.get("filesystem", "mount") self.assertEqual(pm.perm, "mount") -- 2.4.3 _______________________________________________ Selinux mailing list Selinux@xxxxxxxxxxxxx To unsubscribe, send email to Selinux-leave@xxxxxxxxxxxxx. To get help, send an email containing "help" to Selinux-request@xxxxxxxxxxxxx.