commit | 27b029bd001caf66cfb8c732ccab2253f3b64a4e | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Thu Jan 09 11:10:30 2014 -0600 |
committer | Benjamin Peterson <benjamin@python.org> | Thu Jan 09 11:10:30 2014 -0600 |
tree | 46efe175865522a45f9c7ff19d184a7633ea6d0d | |
parent | 7251fe10ffc168f5cdf31c431d9230ec6f3b51f6 [diff] [blame] |
clear zip stat cache after each ref leak run
diff --git a/Lib/test/test_pkgutil.py b/Lib/test/test_pkgutil.py index f665e96..382474d 100644 --- a/Lib/test/test_pkgutil.py +++ b/Lib/test/test_pkgutil.py
@@ -133,9 +133,7 @@ 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()