backport stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 13 Oct 2010 08:37:21 +0200
changeset 6470 8936b6786fb9
parent 6468 40033d536ed8 (current diff)
parent 6469 82cf41ae8b89 (diff)
child 6472 6e058f937126
backport stable
devtools/testlib.py
--- a/devtools/testlib.py	Wed Oct 13 08:36:38 2010 +0200
+++ b/devtools/testlib.py	Wed Oct 13 08:37:21 2010 +0200
@@ -914,6 +914,7 @@
             except ValidationError, ex:
                 # failed to satisfy some constraint
                 print 'error in automatic db population', ex
+                self.session.commit_state = None # reset uncommitable flag
         self.post_populate(cu)
         self.commit()