mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Advanced deprecation warnings for 1.8.
This commit is contained in:
@@ -8,7 +8,7 @@ from zipimport import zipimporter
|
||||
|
||||
from django.core.exceptions import ImproperlyConfigured
|
||||
from django.test import SimpleTestCase, modify_settings
|
||||
from django.test.utils import IgnorePendingDeprecationWarningsMixin, extend_sys_path
|
||||
from django.test.utils import IgnoreDeprecationWarningsMixin, extend_sys_path
|
||||
from django.utils import six
|
||||
from django.utils.deprecation import RemovedInDjango19Warning
|
||||
from django.utils.module_loading import (autodiscover_modules, import_by_path, import_string,
|
||||
@@ -110,7 +110,7 @@ class EggLoader(unittest.TestCase):
|
||||
self.assertRaises(ImportError, import_module, 'egg_module.sub1.sub2.no_such_module')
|
||||
|
||||
|
||||
class ModuleImportTestCase(IgnorePendingDeprecationWarningsMixin, unittest.TestCase):
|
||||
class ModuleImportTestCase(IgnoreDeprecationWarningsMixin, unittest.TestCase):
|
||||
def test_import_by_path(self):
|
||||
cls = import_by_path('django.utils.module_loading.import_by_path')
|
||||
self.assertEqual(cls, import_by_path)
|
||||
|
||||
Reference in New Issue
Block a user