summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pkgutil.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-01-09 17:10:30 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-01-09 17:10:30 (GMT)
commit50b82c765f82c45ee317380a5f5f85e23e7fef36 (patch)
tree3fe47f2431e8be87c6c231a99b7320633ecf08f9 /Lib/test/test_pkgutil.py
parent768c16ce0273a74fa846cc388753280b17b02cfc (diff)
downloadcpython-50b82c765f82c45ee317380a5f5f85e23e7fef36.zip
cpython-50b82c765f82c45ee317380a5f5f85e23e7fef36.tar.gz
cpython-50b82c765f82c45ee317380a5f5f85e23e7fef36.tar.bz2
clear zip stat cache after each ref leak run
Diffstat (limited to 'Lib/test/test_pkgutil.py')
-rw-r--r--Lib/test/test_pkgutil.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/Lib/test/test_pkgutil.py b/Lib/test/test_pkgutil.py
index fd06614..0db4fc6 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__':