diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-02-16 14:53:55 -0500 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-02-16 14:53:55 -0500 |
commit | f617fa88debe53584b9986f86d9f5c4e2397d5f1 (patch) | |
tree | cd5be5b867a7240f9754b5350a94a26cf8d07b06 /Lib/test/test_pkgutil.py | |
parent | ec91cd60406f5ff51a5fbb27fd32091f93b3ca92 (diff) | |
parent | cf626032763077bf959937705ed35f9e2b40a862 (diff) | |
download | cpython-git-f617fa88debe53584b9986f86d9f5c4e2397d5f1.tar.gz |
merge 3.3
Diffstat (limited to 'Lib/test/test_pkgutil.py')
-rw-r--r-- | Lib/test/test_pkgutil.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_pkgutil.py b/Lib/test/test_pkgutil.py index 7a1cd41886..aaa9d8df6b 100644 --- a/Lib/test/test_pkgutil.py +++ b/Lib/test/test_pkgutil.py @@ -349,6 +349,11 @@ class ImportlibMigrationTests(unittest.TestCase): def test_main(): run_unittest(PkgutilTests, PkgutilPEP302Tests, ExtendPathTests, NestedNamespacePackageTest, ImportlibMigrationTests) + # this is necessary if test is run repeated (like when finding leaks) + import zipimport + import importlib + zipimport._zip_directory_cache.clear() + importlib.invalidate_caches() if __name__ == '__main__': |