# HG changeset patch # User Sylvain Thénault # Date 1286951829 -7200 # Node ID 82cf41ae8b897c2f330de47531ba3e4564917b6d # Parent adbce42ff1b526bad3a4601970544d39bf4f5f08 [test] reset uncommitable flag on ValidationError raised during automatic db population diff -r adbce42ff1b5 -r 82cf41ae8b89 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()