summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_importlib
diff options
context:
space:
mode:
authorBrett Cannon <brett@python.org>2013-02-03 21:16:44 (GMT)
committerBrett Cannon <brett@python.org>2013-02-03 21:16:44 (GMT)
commitc0b631c0c475a4985616ee87ecddf4389e9230e0 (patch)
treee9b32aa8f092bad17d96483b67499ff7c2ec3c29 /Lib/test/test_importlib
parent02b9d6ecb46afa44cba2c80ec451123c58835dbb (diff)
parent7a34f02f9e651e8d021ceb759af102d9043b5a5b (diff)
downloadcpython-c0b631c0c475a4985616ee87ecddf4389e9230e0.zip
cpython-c0b631c0c475a4985616ee87ecddf4389e9230e0.tar.gz
cpython-c0b631c0c475a4985616ee87ecddf4389e9230e0.tar.bz2
merge w/ 3.3
Diffstat (limited to 'Lib/test/test_importlib')
-rw-r--r--Lib/test/test_importlib/test_api.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/Lib/test/test_importlib/test_api.py b/Lib/test/test_importlib/test_api.py
index 7dda1ff..f66e257 100644
--- a/Lib/test/test_importlib/test_api.py
+++ b/Lib/test/test_importlib/test_api.py
@@ -183,12 +183,6 @@ class StartupTests(unittest.TestCase):
# Issue #17098: all modules should have __loader__ defined.
for name, module in sys.modules.items():
if isinstance(module, types.ModuleType):
- # pyexpat/xml.parsers.expat have submodules that it creates
- # by hand and do not set __loader__, which is acceptable.
- if 'expat' in name:
- continue
- self.assertTrue(hasattr(module, '__loader__'),
- '{!r} lacks a __loader__ attribute'.format(name))
if name in sys.builtin_module_names:
self.assertIn(module.__loader__,
(importlib.machinery.BuiltinImporter,