Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
Malcolm Tredinnick authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  tests/modeltests/get_or_create/tests.py
4  tests/modeltests/get_or_create/tests.py
... ...
@@ -1,12 +1,12 @@
1 1
 from datetime import date
2 2
 
3 3
 from django.db import IntegrityError
4  
-from django.test import TestCase
  4
+from django.test import TransactionTestCase
5 5
 
6 6
 from models import Person, ManualPrimaryKeyTest
7 7
 
8 8
 
9  
-class GetOrCreateTests(TestCase):
  9
+class GetOrCreateTests(TransactionTestCase):
10 10
     def test_get_or_create(self):
11 11
         p = Person.objects.create(
12 12
             first_name='John', last_name='Lennon', birthday=date(1940, 10, 9)

0 notes on commit 1e7b2f5

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