Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed the get_or_create tests for postgreSQL, by using

TransactionTestCase.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@13814 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 1e7b2f5a06885efe5d4436498ace4272c562f16a 1 parent 7202990
@malcolmt malcolmt authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 tests/modeltests/get_or_create/tests.py
View
4 tests/modeltests/get_or_create/tests.py
@@ -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.