[test] make unittest_schemaserial.py runnable with python
used to run fine only when launched using pytest
--- a/server/test/unittest_schemaserial.py Mon Jul 08 17:38:10 2013 +0200
+++ b/server/test/unittest_schemaserial.py Fri Jul 05 10:35:14 2013 +0200
@@ -28,6 +28,7 @@
from logilab.database import get_db_helper
from yams import register_base_type, unregister_base_type
+schema = config = None
def setUpModule(*args):
register_base_type('BabarTestType', ('jungle_speed',))
helper = get_db_helper('sqlite')
@@ -44,7 +45,7 @@
def tearDownModule(*args):
global schema, config
- del schema, config
+ schema = config = None
unregister_base_type('BabarTestType')
helper = get_db_helper('sqlite')