[Python-checkins] cpython: unload() should be sufficient

antoine.pitrou python-checkins at python.org
Wed Feb 22 02:33:36 CET 2012


http://hg.python.org/cpython/rev/c21d5eebc3ed
changeset:   75163:c21d5eebc3ed
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Wed Feb 22 02:30:09 2012 +0100
summary:
  unload() should be sufficient

files:
  Lib/test/test_imp.py |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Lib/test/test_imp.py b/Lib/test/test_imp.py
--- a/Lib/test/test_imp.py
+++ b/Lib/test/test_imp.py
@@ -329,9 +329,9 @@
         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__))
 

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list