Browse files

[1.2.X] Fixed the get_or_create tests for postgreSQL, by using


Backport of r13814 from trunk.

git-svn-id: bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent 0c65a6f commit fa35d2bd4d0c941fda8d0e54af59700589cd725f @malcolmt malcolmt committed Sep 12, 2010
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 fa35d2b

Please sign in to comment.