diff options
author | Christian Heimes <christian@cheimes.de> | 2008-04-21 13:08:03 (GMT) |
---|---|---|
committer | Christian Heimes <christian@cheimes.de> | 2008-04-21 13:08:03 (GMT) |
commit | e57950fbfef77f327d79a73955b42e3696ecf9f0 (patch) | |
tree | 67d0fdaadc4f912bc78626859b802b37ca1696dd /Lib/test/test_pkgutil.py | |
parent | 1a3239e94509ac236ee886ce64e6cb0c5a3fea9f (diff) | |
download | cpython-e57950fbfef77f327d79a73955b42e3696ecf9f0.zip cpython-e57950fbfef77f327d79a73955b42e3696ecf9f0.tar.gz cpython-e57950fbfef77f327d79a73955b42e3696ecf9f0.tar.bz2 |
Merged revisions 62420-62421,62423-62424 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r62420 | mark.dickinson | 2008-04-20 20:30:05 +0200 (Sun, 20 Apr 2008) | 3 lines
Even more fixes for alpha Tru64, this time for
the phase and polar methods.
........
r62421 | mark.dickinson | 2008-04-20 22:38:48 +0200 (Sun, 20 Apr 2008) | 2 lines
Add test for tanh(-0.) == -0. on IEEE 754 systems
........
r62423 | amaury.forgeotdarc | 2008-04-20 23:02:21 +0200 (Sun, 20 Apr 2008) | 3 lines
Correct an apparent refleak in test_pkgutil: zipimport._zip_directory_cache contains
info for all processed zip files, even when they are no longer used.
........
r62424 | mark.dickinson | 2008-04-20 23:39:04 +0200 (Sun, 20 Apr 2008) | 4 lines
math.atan2 is misbehaving on Windows; this patch
should fix the problem in the same way that
the cmath.phase problems were fixed.
........
Diffstat (limited to 'Lib/test/test_pkgutil.py')
-rw-r--r-- | Lib/test/test_pkgutil.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_pkgutil.py b/Lib/test/test_pkgutil.py index c9ec060..dfd2430 100644 --- a/Lib/test/test_pkgutil.py +++ b/Lib/test/test_pkgutil.py @@ -122,6 +122,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() |