Skip to content
Browse files

Fixed the get_or_create tests for postgreSQL, by using


git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 7202990 commit 1e7b2f5a06885efe5d4436498ace4272c562f16a @malcolmt malcolmt committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/modeltests/get_or_create/
4 tests/modeltests/get_or_create/
@@ -1,12 +1,12 @@
from datetime import date
from django.db import IntegrityError
-from django.test import TestCase
+from django.test import TransactionTestCase
from models import Person, ManualPrimaryKeyTest
-class GetOrCreateTests(TestCase):
+class GetOrCreateTests(TransactionTestCase):
def test_get_or_create(self):
p = Person.objects.create(
first_name='John', last_name='Lennon', birthday=date(1940, 10, 9)

0 comments on commit 1e7b2f5

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