From b4d7f431f43587d2be7c512d1e3954724100cae1 Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Tue, 15 May 2012 22:01:53 +0200 Subject: [PATCH] Fix two missing close() class in tests Eliminates a warning during testing. --- test/test_xattr.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/test_xattr.py b/test/test_xattr.py index a1ad52f..fa2c288 100644 --- a/test/test_xattr.py +++ b/test/test_xattr.py @@ -233,6 +233,7 @@ class xattrTest(unittest.TestCase): self.assertEqual(xattr.get_all(fo), [(self.USER_ATTR, self.USER_VAL)]) self.assertEqual(xattr.get_all(fname), [(self.USER_ATTR, self.USER_VAL)]) + fo.close() def testMixedAccess(self): """test mixed access to file""" @@ -252,6 +253,7 @@ class xattrTest(unittest.TestCase): [(self.USER_ATTR, self.USER_VAL)]) self.assertEqual(xattr.get_all(fname, namespace=NS_USER), [(self.USER_NN, self.USER_VAL)]) + fo.close() def testDirOpsDeprecated(self): """test attribute setting on directories (deprecated functions)""" -- 2.39.5