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):