cubicweb/server/test/unittest_undo.py
branch3.25
changeset 12146 d540defa0591
parent 11200 8ddfed7a5981
child 12567 26744ad37953
--- a/cubicweb/server/test/unittest_undo.py	Tue Apr 04 17:43:56 2017 +0200
+++ b/cubicweb/server/test/unittest_undo.py	Wed Apr 05 14:59:09 2017 +0200
@@ -378,7 +378,7 @@
             txuuid = cnx.commit()
             p = cnx.create_entity('Personne', nom=u'louis', fiche=c)
             cnx.commit()
-            integrityerror = self.repo.sources_by_uri['system'].dbhelper.dbapi_module.IntegrityError
+            integrityerror = self.repo.system_source.dbhelper.dbapi_module.IntegrityError
             with self.assertRaises(integrityerror):
                 cnx.undo_transaction(txuuid)