diff options
| author | Alex Gaynor <alex.gaynor@gmail.com> | 2010-10-09 06:06:24 +0000 |
|---|---|---|
| committer | Alex Gaynor <alex.gaynor@gmail.com> | 2010-10-09 06:06:24 +0000 |
| commit | 80aa4432e64794bb67ce8dd6cd3e570841a901c3 (patch) | |
| tree | f3503390ec90eba59a0eeedb10a21c3f4c206bfe /tests | |
| parent | c93f5e5d0e530203048ddb6424ef43acabe17cf1 (diff) | |
Fixed #12979 -- allowed using savepoints in TestCase (i.e. tests with transactions disabled), convert the GetOrCreate tests to use this.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14061 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'tests')
| -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 1999b20c76..3323c88a82 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 TransactionTestCase +from django.test import TestCase from models import Person, ManualPrimaryKeyTest -class GetOrCreateTests(TransactionTestCase): +class GetOrCreateTests(TestCase): def test_get_or_create(self): p = Person.objects.create( first_name='John', last_name='Lennon', birthday=date(1940, 10, 9) |
