diff options
| author | Claude Paroz <claude@2xlibre.net> | 2013-07-29 15:50:58 +0200 |
|---|---|---|
| committer | Claude Paroz <claude@2xlibre.net> | 2013-07-29 17:10:22 +0200 |
| commit | fdd7a355bf053217d25b8d2189e37069c1304283 (patch) | |
| tree | 3245c7060d2b7ac597b5e2cd9c114eae0166bd19 /tests | |
| parent | ac0955876089002f0f60857d09fe1c94d67eca4f (diff) | |
Deprecated django.utils.importlib
This was a shim for pre-Python 2.7 support.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/i18n/tests.py | 2 | ||||
| -rw-r--r-- | tests/test_runner/tests.py | 2 | ||||
| -rw-r--r-- | tests/utils_tests/test_module_loading.py | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/tests/i18n/tests.py b/tests/i18n/tests.py index 019ed88cdb..8e6ec45ce1 100644 --- a/tests/i18n/tests.py +++ b/tests/i18n/tests.py @@ -3,6 +3,7 @@ from __future__ import absolute_import, unicode_literals import datetime import decimal +from importlib import import_module import os import pickle from threading import local @@ -17,7 +18,6 @@ from django.utils import translation from django.utils.formats import (get_format, date_format, time_format, localize, localize_input, iter_format_modules, get_format_modules, number_format, reset_format_cache, sanitize_separators) -from django.utils.importlib import import_module from django.utils.numberformat import format as nformat from django.utils._os import upath from django.utils.safestring import mark_safe, SafeBytes, SafeString, SafeText diff --git a/tests/test_runner/tests.py b/tests/test_runner/tests.py index 72200e40d3..48651b37ff 100644 --- a/tests/test_runner/tests.py +++ b/tests/test_runner/tests.py @@ -3,6 +3,7 @@ Tests for django test runner """ from __future__ import absolute_import, unicode_literals +from importlib import import_module from optparse import make_option import sys import unittest @@ -13,7 +14,6 @@ from django import db from django.test import runner, TestCase, TransactionTestCase, skipUnlessDBFeature from django.test.testcases import connections_support_transactions from django.test.utils import IgnoreAllDeprecationWarningsMixin -from django.utils.importlib import import_module from admin_scripts.tests import AdminScriptTestCase from .models import Person diff --git a/tests/utils_tests/test_module_loading.py b/tests/utils_tests/test_module_loading.py index 5a43a927bf..2423215778 100644 --- a/tests/utils_tests/test_module_loading.py +++ b/tests/utils_tests/test_module_loading.py @@ -1,11 +1,11 @@ import imp +from importlib import import_module import os import sys import unittest from zipimport import zipimporter from django.core.exceptions import ImproperlyConfigured -from django.utils.importlib import import_module from django.utils.module_loading import import_by_path, module_has_submodule from django.utils._os import upath |
