Skip to content
This repository
Browse code

Fix sqlite3-specific testcase and include a rollback -- passing with

postgresql now
  • Loading branch information...
commit b41abf04bd98bbeab03f341f5d0c8cc4a8d3a9cc 1 parent 8e342c0
Charles Leifer authored October 08, 2012

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. 3  tests.py
3  tests.py
@@ -1797,5 +1797,6 @@ def test_primary_foreign_key(self):
1797 1797
         self.assertEqual([job], list(executed_jobs))
1798 1798
 
1799 1799
         # we must not be able to create another execution record for the job
1800  
-        with self.assertRaises(sqlite3.IntegrityError):
  1800
+        with self.assertRaises(Exception):
1801 1801
             JobExecutionRecord.create(job=job, status='success')
  1802
+        test_db.rollback()

0 notes on commit b41abf0

Please sign in to comment.
Something went wrong with that request. Please try again.