[testlib] move _cnxs initialization before setup_database so one can login in it stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 26 Apr 2010 10:41:40 +0200
branchstable
changeset 5401 547911327475
parent 5400 b7ab099b128a
child 5404 092bb9355769
[testlib] move _cnxs initialization before setup_database so one can login in it
devtools/testlib.py
--- a/devtools/testlib.py	Fri Apr 23 20:06:04 2010 +0200
+++ b/devtools/testlib.py	Mon Apr 26 10:41:40 2010 +0200
@@ -255,10 +255,10 @@
             self.__class__._repo_init_failed = ex
             raise
         resume_tracing()
+        self._cnxs = []
         self.setup_database()
         self.commit()
         MAILBOX[:] = [] # reset mailbox
-        self._cnxs = []
 
     def tearDown(self):
         for cnx in self._cnxs: