[test] reset uncommitable flag on ValidationError raised during automatic db population stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 13 Oct 2010 08:37:09 +0200
branchstable
changeset 6469 82cf41ae8b89
parent 6441 adbce42ff1b5
child 6470 8936b6786fb9
child 6471 6e0642346f80
[test] reset uncommitable flag on ValidationError raised during automatic db population
devtools/testlib.py
--- a/devtools/testlib.py	Mon Oct 11 13:40:18 2010 +0200
+++ b/devtools/testlib.py	Wed Oct 13 08:37:09 2010 +0200
@@ -910,6 +910,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()