From f33607ac7c9aab3b594eac726a337dc7dba43172 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Sat, 3 Aug 2013 16:46:17 +0000 Subject: [PATCH] Close database files before removing them svn: r22794 --- gramps/gen/db/test/cursor_test.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gramps/gen/db/test/cursor_test.py b/gramps/gen/db/test/cursor_test.py index c3da8d278..74d1e8701 100644 --- a/gramps/gen/db/test/cursor_test.py +++ b/gramps/gen/db/test/cursor_test.py @@ -104,6 +104,9 @@ class CursorTest(unittest.TestCase): return (person_map,surnames) def tearDown(self): + self.person_map.close() + self.surnames.close() + self.env.close() shutil.rmtree(self._tmpdir) def test_simple_insert(self):