1
0
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:
Tim Graham
2013-10-18 07:25:30 -04:00
parent 9f76ea1eaa
commit 36ded01527
116 changed files with 248 additions and 181 deletions

View File

@@ -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)