unload() should be sufficient

This commit is contained in:
Antoine Pitrou 2012-02-22 02:30:09 +01:00
parent abe72d7eb3
commit 037615e1ef

View File

@ -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__))