diff options
| author | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2010-09-12 22:03:44 +0000 |
|---|---|---|
| committer | Malcolm Tredinnick <malcolm.tredinnick@gmail.com> | 2010-09-12 22:03:44 +0000 |
| commit | 1e7b2f5a06885efe5d4436498ace4272c562f16a (patch) | |
| tree | 82a2a5bd68ead6de2ed53e28a1b59965618eb269 /tests/modeltests | |
| parent | 720299053a045e73f38152296311f872b48367a8 (diff) | |
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
Diffstat (limited to 'tests/modeltests')
| -rw-r--r-- | tests/modeltests/get_or_create/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/modeltests/get_or_create/tests.py b/tests/modeltests/get_or_create/tests.py index 3323c88a82..1999b20c76 100644 --- a/tests/modeltests/get_or_create/tests.py +++ b/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) |
