summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_importlib/test_spec.py
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2014-01-07 03:38:16 (GMT)
committerEric Snow <ericsnowcurrently@gmail.com>2014-01-07 03:38:16 (GMT)
commit3192eac6cfa658cb66e42bea4c7c59cef85fd6fc (patch)
tree2134efe978588d84f05e5f2fb3e9fefed9f05c5e /Lib/test/test_importlib/test_spec.py
parent3845521b4b7b61d49181c611ee427042152671f2 (diff)
downloadcpython-3192eac6cfa658cb66e42bea4c7c59cef85fd6fc.zip
cpython-3192eac6cfa658cb66e42bea4c7c59cef85fd6fc.tar.gz
cpython-3192eac6cfa658cb66e42bea4c7c59cef85fd6fc.tar.bz2
Remove dead PEP 451 code.
Diffstat (limited to 'Lib/test/test_importlib/test_spec.py')
-rw-r--r--Lib/test/test_importlib/test_spec.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/Lib/test/test_importlib/test_spec.py b/Lib/test/test_importlib/test_spec.py
index 2af47f4..ae77a28 100644
--- a/Lib/test/test_importlib/test_spec.py
+++ b/Lib/test/test_importlib/test_spec.py
@@ -437,18 +437,6 @@ class ModuleSpecMethodsTests:
loaded = self.bootstrap._SpecMethods(self.spec).load()
self.assertNotIn(self.spec.name, sys.modules)
- def test_load_existing(self):
- existing = type(sys)('ham')
- existing.count = 5
- self.spec.loader = NewLoader()
- with CleanImport(self.name):
- sys.modules[self.name] = existing
- assert self.spec.name == self.name
- loaded = self.bootstrap._SpecMethods(self.spec).load()
-
- self.assertEqual(loaded.eggs, 1)
- self.assertFalse(hasattr(loaded, 'ham'))
-
def test_load_legacy(self):
self.spec.loader = LegacyLoader()
with CleanImport(self.spec.name):