# HG changeset patch # User Augie Fackler # Date 1466989624 14400 # Node ID 8d8fc10d0d0a49ecac2cf6284dc5b729f1a3b9e8 # Parent b9530c171050562914f613d0f3a9ec2631b2f840 test_helpers: avoid leaking a temporary directory diff --git a/tests/test_helpers.py b/tests/test_helpers.py --- a/tests/test_helpers.py +++ b/tests/test_helpers.py @@ -30,3 +30,4 @@ class TestHelpers(unittest.TestCase): fs.popfile('bb') self.assertEqual([], os.listdir(fs._tempdir)) self.assertRaises(editor.EditingError, lambda: fs.getfile('bb')) + fs.close()