diff options
author | Thomas Wouters <thomas@python.org> | 2006-05-28 10:46:55 (GMT) |
---|---|---|
committer | Thomas Wouters <thomas@python.org> | 2006-05-28 10:46:55 (GMT) |
commit | 60254fe8448787be73e7973616e206f2b5de3f21 (patch) | |
tree | 7b22102548f5cc4eddac889268a0f2f232883e5a /Lib | |
parent | 477c8d5e70240744d24631b18341ad892c8a8e1c (diff) | |
download | cpython-60254fe8448787be73e7973616e206f2b5de3f21.zip cpython-60254fe8448787be73e7973616e206f2b5de3f21.tar.gz cpython-60254fe8448787be73e7973616e206f2b5de3f21.tar.bz2 |
While testing absolute and relative imports, remember that absolute imports
are the default now. (Should __future__ be cleaned up, and all tests for
future statements be removed or changed to expect exceptions when they are
used?)
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_importhooks.py | 11 |
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") |