From 60254fe8448787be73e7973616e206f2b5de3f21 Mon Sep 17 00:00:00 2001 From: Thomas Wouters Date: Sun, 28 May 2006 10:46:55 +0000 Subject: 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?) --- Lib/test/test_importhooks.py | 11 +++++------ 1 file 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") -- cgit v0.12