devtools/testlib.py
branchstable
changeset 6469 82cf41ae8b89
parent 6441 adbce42ff1b5
child 6470 8936b6786fb9
child 6585 9af22f2c0c4c
equal deleted inserted replaced
6441:adbce42ff1b5 6469:82cf41ae8b89
   908             try:
   908             try:
   909                 cu.execute(rql, args)
   909                 cu.execute(rql, args)
   910             except ValidationError, ex:
   910             except ValidationError, ex:
   911                 # failed to satisfy some constraint
   911                 # failed to satisfy some constraint
   912                 print 'error in automatic db population', ex
   912                 print 'error in automatic db population', ex
       
   913                 self.session.commit_state = None # reset uncommitable flag
   913         self.post_populate(cu)
   914         self.post_populate(cu)
   914         self.commit()
   915         self.commit()
   915 
   916 
   916     def iter_individual_rsets(self, etypes=None, limit=None):
   917     def iter_individual_rsets(self, etypes=None, limit=None):
   917         etypes = etypes or self.to_test_etypes()
   918         etypes = etypes or self.to_test_etypes()