server/test/unittest_ssplanner.py
changeset 4766 162b2b127b15
parent 4252 6c4f109c2b03
child 5421 8167de96c523
--- a/server/test/unittest_ssplanner.py	Wed Mar 03 17:59:05 2010 +0100
+++ b/server/test/unittest_ssplanner.py	Wed Mar 03 18:30:25 2010 +0100
@@ -12,6 +12,10 @@
 # keep cnx so it's not garbage collected and the associated session closed
 repo, cnx = init_test_database()
 
+def teardown_module(*args):
+    global repo, cnx
+    del repo, cnx
+
 class SSPlannerTC(BasePlannerTC):
     repo = repo
     _test = test_plan