diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-02-16 19:51:17 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-02-16 19:51:17 (GMT) |
commit | 5503579db68f22e0ddca030f2aa5cd48373e08c0 (patch) | |
tree | e87416f4bac5ff7a62a00739d4a0252bb571e866 /Lib/test/test_pkgutil.py | |
parent | f387e967686b02e9ece1d5f78478ef8963c56cae (diff) | |
download | cpython-5503579db68f22e0ddca030f2aa5cd48373e08c0.zip cpython-5503579db68f22e0ddca030f2aa5cd48373e08c0.tar.gz cpython-5503579db68f22e0ddca030f2aa5cd48373e08c0.tar.bz2 |
backout 369bf9fbaeff
Diffstat (limited to 'Lib/test/test_pkgutil.py')
-rw-r--r-- | Lib/test/test_pkgutil.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_pkgutil.py b/Lib/test/test_pkgutil.py index 382474d..f665e96 100644 --- a/Lib/test/test_pkgutil.py +++ b/Lib/test/test_pkgutil.py @@ -133,7 +133,9 @@ class PkgutilPEP302Tests(unittest.TestCase): def test_main(): run_unittest(PkgutilTests, PkgutilPEP302Tests) - + # this is necessary if test is run repeated (like when finding leaks) + import zipimport + zipimport._zip_directory_cache.clear() if __name__ == '__main__': test_main() |