mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #21302 -- Fixed unused imports and import *.
This commit is contained in:
@@ -44,7 +44,7 @@ class DefaultLoader(unittest.TestCase):
|
||||
self.assertRaises(ImportError, import_module, 'utils_tests.test_module.django')
|
||||
|
||||
# Don't be confused by caching of import misses
|
||||
import types # causes attempted import of utils_tests.types
|
||||
import types # NOQA: causes attempted import of utils_tests.types
|
||||
self.assertFalse(module_has_submodule(sys.modules['utils_tests'], 'types'))
|
||||
|
||||
# A module which doesn't have a __path__ (so no submodules)
|
||||
|
||||
Reference in New Issue
Block a user