From 037615e1ef0784f5602393ce5fa6802811ae1559 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Wed, 22 Feb 2012 02:30:09 +0100 Subject: unload() should be sufficient --- Lib/test/test_imp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_imp.py b/Lib/test/test_imp.py index 739f780..90ccd7e 100644 --- a/Lib/test/test_imp.py +++ b/Lib/test/test_imp.py @@ -329,9 +329,9 @@ class PEP3147Tests(unittest.TestCase): m = __import__('pep3147') self.assertEqual(m.__file__, expected___file__, (m.__file__, m.__path__)) # Ensure we load the pyc file. - support.forget('pep3147') + support.unload('pep3147') m = __import__('pep3147') - support.forget('pep3147') + support.unload('pep3147') sys.stdout.flush() self.assertEqual(m.__file__, expected___file__, (m.__file__, m.__path__)) -- cgit v0.12