From 121d2e36785dc0ce8e7d1c48883fc7b719b21afc Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Mon, 11 Oct 2010 12:55:17 +0000 Subject: Fixed #12991 -- Added unittest2 support. Thanks to PaulM for the draft patch, and to Luke, Karen, Justin, Alex, Ɓukasz Rekucki, and Chuck Harmston for their help testing and reviewing the final patch. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://code.djangoproject.com/svn/django/trunk@14139 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- tests/regressiontests/forms/fields.py | 3 +-- tests/regressiontests/forms/input_formats.py | 2 +- tests/regressiontests/forms/validators.py | 3 +-- tests/regressiontests/forms/widgets.py | 5 ++--- 4 files changed, 5 insertions(+), 8 deletions(-) (limited to 'tests/regressiontests/forms') diff --git a/tests/regressiontests/forms/fields.py b/tests/regressiontests/forms/fields.py index cf0c3f659c..b3212eada2 100644 --- a/tests/regressiontests/forms/fields.py +++ b/tests/regressiontests/forms/fields.py @@ -30,11 +30,10 @@ import re import os from decimal import Decimal -from unittest import TestCase - from django.core.files.uploadedfile import SimpleUploadedFile from django.forms import * from django.forms.widgets import RadioFieldRenderer +from django.utils.unittest import TestCase def fix_os_paths(x): diff --git a/tests/regressiontests/forms/input_formats.py b/tests/regressiontests/forms/input_formats.py index 498c6de9fb..e362620ddb 100644 --- a/tests/regressiontests/forms/input_formats.py +++ b/tests/regressiontests/forms/input_formats.py @@ -1,9 +1,9 @@ from datetime import time, date, datetime -from unittest import TestCase from django import forms from django.conf import settings from django.utils.translation import activate, deactivate +from django.utils.unittest import TestCase class LocalizedTimeTests(TestCase): diff --git a/tests/regressiontests/forms/validators.py b/tests/regressiontests/forms/validators.py index ed8e8fbd9a..cadf660ab8 100644 --- a/tests/regressiontests/forms/validators.py +++ b/tests/regressiontests/forms/validators.py @@ -1,8 +1,7 @@ -from unittest import TestCase - from django import forms from django.core import validators from django.core.exceptions import ValidationError +from django.utils.unittest import TestCase class TestFieldWithValidators(TestCase): diff --git a/tests/regressiontests/forms/widgets.py b/tests/regressiontests/forms/widgets.py index 10483a7675..2c21d197b2 100644 --- a/tests/regressiontests/forms/widgets.py +++ b/tests/regressiontests/forms/widgets.py @@ -1265,10 +1265,9 @@ u'