From a589fdff81ab36c57ff0a1003e60ee0dd55f3a88 Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Mon, 24 Sep 2012 13:55:37 +0100 Subject: [PATCH] Fix PostgreSQL failing on a test --- tests/modeltests/schema/tests.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/modeltests/schema/tests.py b/tests/modeltests/schema/tests.py index f679624538..6ac72b4c02 100644 --- a/tests/modeltests/schema/tests.py +++ b/tests/modeltests/schema/tests.py @@ -119,6 +119,7 @@ class SchemaTests(TestCase): DatabaseError, lambda: list(Author.objects.all()), ) + connection.rollback() @skipUnless(connection.features.supports_foreign_keys, "No FK support") def test_fk(self):