summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_importhooks.py11
1 files changed, 5 insertions, 6 deletions
diff --git a/Lib/test/test_importhooks.py b/Lib/test/test_importhooks.py
index e8b4695..d31bcb2 100644
--- a/Lib/test/test_importhooks.py
+++ b/Lib/test/test_importhooks.py
@@ -194,12 +194,6 @@ class ImportHooksTestCase(ImportHooksBaseTestCase):
reload(reloadmodule)
self.failUnless(hasattr(reloadmodule,'reloaded'))
- import hooktestpackage.oldabs
- self.assertEqual(hooktestpackage.oldabs.get_name(),
- "hooktestpackage.oldabs")
- self.assertEqual(hooktestpackage.oldabs.sub,
- hooktestpackage.sub)
-
import hooktestpackage.newrel
self.assertEqual(hooktestpackage.newrel.get_name(),
"hooktestpackage.newrel")
@@ -221,6 +215,11 @@ class ImportHooksTestCase(ImportHooksBaseTestCase):
import sub
self.assertEqual(sub.get_name(), "sub")
+ import hooktestpackage.oldabs
+ self.assertEqual(hooktestpackage.oldabs.get_name(),
+ "hooktestpackage.oldabs")
+ self.assertEqual(hooktestpackage.oldabs.sub, sub)
+
import hooktestpackage.newabs
self.assertEqual(hooktestpackage.newabs.get_name(),
"hooktestpackage.newabs")