diff -r f516ee1ef36c -r 26c303c3f1aa server/test/unittest_querier.py --- a/server/test/unittest_querier.py Mon Oct 25 16:28:05 2010 +0200 +++ b/server/test/unittest_querier.py Mon Oct 25 17:15:46 2010 +0200 @@ -62,7 +62,9 @@ ('C0 text,C1 integer', {'A': 'table0.C0', 'B': 'table0.C1'})) -repo, cnx = init_test_database() +def setup_module(*args): + global repo, cnx + repo, cnx = init_test_database(apphome=UtilsTC.datadir) def teardown_module(*args): global repo, cnx @@ -72,7 +74,9 @@ class UtilsTC(BaseQuerierTC): - repo = repo + def setUp(self): + self.__class__.repo = repo + super(UtilsTC, self).setUp() def get_max_eid(self): # no need for cleanup here @@ -225,7 +229,9 @@ class QuerierTC(BaseQuerierTC): - repo = repo + def setUp(self): + self.__class__.repo = repo + super(QuerierTC, self).setUp() def test_encoding_pb(self): self.assertRaises(RQLSyntaxError, self.execute,