server/test/unittest_repository.py
changeset 7666 8644c2a065f0
parent 7563 8e129bb6b571
child 7713 467c52ff9557
equal deleted inserted replaced
7665:0cd299c16f12 7666:8644c2a065f0
   291             repo.execute(cnxid, 'DELETE CWUser X WHERE X login "toto"')
   291             repo.execute(cnxid, 'DELETE CWUser X WHERE X login "toto"')
   292             repo.commit(cnxid)
   292             repo.commit(cnxid)
   293         try:
   293         try:
   294             with self.assertRaises(Exception) as cm:
   294             with self.assertRaises(Exception) as cm:
   295                 run_transaction()
   295                 run_transaction()
   296             self.assertEqual(str(cm.exception), 'try to access connections set on a closed session')
   296             self.assertEqual(str(cm.exception), 'try to access connections set on a closed session %s' % cnxid)
   297         finally:
   297         finally:
   298             t.join()
   298             t.join()
   299 
   299 
   300     def test_initial_schema(self):
   300     def test_initial_schema(self):
   301         schema = self.repo.schema
   301         schema = self.repo.schema