--- 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)