[test] get a chance to get proper garbage collection when running pytest on whole cw
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 03 Mar 2010 18:57:41 +0100
changeset 4774 89a7555020ba
parent 4773 6ab9ca63531f
child 4775 3a37f0ce7527
[test] get a chance to get proper garbage collection when running pytest on whole cw
server/test/unittest_migractions.py
--- a/server/test/unittest_migractions.py	Wed Mar 03 18:56:37 2010 +0100
+++ b/server/test/unittest_migractions.py	Wed Mar 03 18:57:41 2010 +0100
@@ -14,6 +14,11 @@
 from cubicweb.server.sqlutils import SQL_PREFIX
 from cubicweb.server.migractions import *
 
+migrschema = None
+def teardown_module(*args):
+    global migrschema
+    del migrschema
+    del MigrationCommandsTC.origschema
 
 class MigrationCommandsTC(CubicWebTC):