diff options
Diffstat (limited to 'tests/regressiontests/forms')
| -rw-r--r-- | tests/regressiontests/forms/extra.py | 5 | ||||
| -rw-r--r-- | tests/regressiontests/forms/fields.py | 6 | ||||
| -rw-r--r-- | tests/regressiontests/forms/forms.py | 5 | ||||
| -rw-r--r-- | tests/regressiontests/forms/widgets.py | 5 |
4 files changed, 4 insertions, 17 deletions
diff --git a/tests/regressiontests/forms/extra.py b/tests/regressiontests/forms/extra.py index 2d25530a48..7547901d0f 100644 --- a/tests/regressiontests/forms/extra.py +++ b/tests/regressiontests/forms/extra.py @@ -5,10 +5,7 @@ tests = r""" >>> import datetime >>> import time >>> import re ->>> try: -... from decimal import Decimal -... except ImportError: -... from django.utils._decimal import Decimal +>>> from decimal import Decimal ############### # Extra stuff # diff --git a/tests/regressiontests/forms/fields.py b/tests/regressiontests/forms/fields.py index eb85a05d21..990a9f74cf 100644 --- a/tests/regressiontests/forms/fields.py +++ b/tests/regressiontests/forms/fields.py @@ -28,6 +28,7 @@ import datetime import time import re import os +from decimal import Decimal from unittest import TestCase @@ -35,11 +36,6 @@ from django.core.files.uploadedfile import SimpleUploadedFile from django.forms import * from django.forms.widgets import RadioFieldRenderer -try: - from decimal import Decimal -except ImportError: - from django.utils._decimal import Decimal - def fix_os_paths(x): if isinstance(x, basestring): diff --git a/tests/regressiontests/forms/forms.py b/tests/regressiontests/forms/forms.py index bb58eaa982..58051fd133 100644 --- a/tests/regressiontests/forms/forms.py +++ b/tests/regressiontests/forms/forms.py @@ -5,10 +5,7 @@ tests = r""" >>> import datetime >>> import time >>> import re ->>> try: -... from decimal import Decimal -... except ImportError: -... from django.utils._decimal import Decimal +>>> from decimal import Decimal ######### # Forms # diff --git a/tests/regressiontests/forms/widgets.py b/tests/regressiontests/forms/widgets.py index cc83a888cf..0b2ccebbb1 100644 --- a/tests/regressiontests/forms/widgets.py +++ b/tests/regressiontests/forms/widgets.py @@ -7,10 +7,7 @@ tests = r""" >>> import datetime >>> import time >>> import re ->>> try: -... from decimal import Decimal -... except ImportError: -... from django.utils._decimal import Decimal +>>> from decimal import Decimal >>> from django.utils.translation import activate, deactivate >>> from django.conf import settings |
