Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

TransactionTestCase.

Backport of r13814 from trunk.

git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.2.X@13815 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit fa35d2bd4d0c941fda8d0e54af59700589cd725f 1 parent 0c65a6f
Malcolm Tredinnick malcolmt authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/modeltests/get_or_create/tests.py
4 tests/modeltests/get_or_create/tests.py
View
@@ -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)
Please sign in to comment.
Something went wrong with that request. Please try again.