diff options
author | Benjamin Peterson <benjamin@python.org> | 2014-01-09 11:10:30 -0600 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2014-01-09 11:10:30 -0600 |
commit | 50b82c765f82c45ee317380a5f5f85e23e7fef36 (patch) | |
tree | 3fe47f2431e8be87c6c231a99b7320633ecf08f9 /Lib/test/test_pkgutil.py | |
parent | 768c16ce0273a74fa846cc388753280b17b02cfc (diff) | |
download | cpython-git-50b82c765f82c45ee317380a5f5f85e23e7fef36.tar.gz |
clear zip stat cache after each ref leak run
Diffstat (limited to 'Lib/test/test_pkgutil.py')
-rw-r--r-- | Lib/test/test_pkgutil.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/Lib/test/test_pkgutil.py b/Lib/test/test_pkgutil.py index fd0661450a..0db4fc6178 100644 --- a/Lib/test/test_pkgutil.py +++ b/Lib/test/test_pkgutil.py @@ -338,11 +338,6 @@ 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__': |