Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

[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 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 fa35d2b

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