summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2006-04-06 08:00:20 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2006-04-06 08:00:20 (GMT)
commit5102c4e385689a1d3c67eccefa2a4b7ac6686712 (patch)
tree5941cc8a982c3d4ce5e3e59331a953249b84b492 /Lib
parenta1f9b7f50f563cbaba2ece940f6623da5534fedd (diff)
downloadcpython-5102c4e385689a1d3c67eccefa2a4b7ac6686712.zip
cpython-5102c4e385689a1d3c67eccefa2a4b7ac6686712.tar.gz
cpython-5102c4e385689a1d3c67eccefa2a4b7ac6686712.tar.bz2
Hopefully this makes test_urllib2 have inconsistent leak results
Diffstat (limited to 'Lib')
-rwxr-xr-xLib/test/regrtest.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index b363455..1109086 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -520,7 +520,7 @@ def runtest(test, generate, verbose, quiet, testdir=None, huntrleaks=False):
import gc
def cleanup():
import _strptime, linecache, warnings, dircache
- import urlparse, urllib, urllib2
+ import urlparse, urllib, urllib2, mimetypes
from distutils.dir_util import _path_created
_path_created.clear()
warnings.filters[:] = fs
@@ -536,6 +536,7 @@ def runtest(test, generate, verbose, quiet, testdir=None, huntrleaks=False):
sys.path_importer_cache.update(pic)
dircache.reset()
linecache.clearcache()
+ mimetypes._default_mime_types()
if indirect_test:
def run_the_test():
indirect_test()