[Python-checkins] r43691 - in python/trunk: Lib/test/regrtest.py Misc/build.sh
neal.norwitz
python-checkins at python.org
Thu Apr 6 10:00:21 CEST 2006
Author: neal.norwitz
Date: Thu Apr 6 10:00:20 2006
New Revision: 43691
Modified:
python/trunk/Lib/test/regrtest.py
python/trunk/Misc/build.sh
Log:
Hopefully this makes test_urllib2 have inconsistent leak results
Modified: python/trunk/Lib/test/regrtest.py
==============================================================================
--- python/trunk/Lib/test/regrtest.py (original)
+++ python/trunk/Lib/test/regrtest.py Thu Apr 6 10:00:20 2006
@@ -520,7 +520,7 @@
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 @@
sys.path_importer_cache.update(pic)
dircache.reset()
linecache.clearcache()
+ mimetypes._default_mime_types()
if indirect_test:
def run_the_test():
indirect_test()
Modified: python/trunk/Misc/build.sh
==============================================================================
--- python/trunk/Misc/build.sh (original)
+++ python/trunk/Misc/build.sh Thu Apr 6 10:00:20 2006
@@ -60,7 +60,7 @@
# Note: test_XXX (none currently) really leak, but are disabled
# so we don't send spam. Any test which really leaks should only
# be listed here if there are also test cases under Lib/test/leakers.
-LEAKY_TESTS="test_(capi|cfgparser|charmapcodec|cmd_line|compiler|ctypes|filecmp|quopri|socket|threaded_import|threadedtempfile|threading|threading_local|urllib2)"
+LEAKY_TESTS="test_(capi|cfgparser|charmapcodec|cmd_line|compiler|ctypes|filecmp|quopri|socket|threaded_import|threadedtempfile|threading|threading_local)"
# Change this flag to "yes" for old releases to only update/build the docs.
BUILD_DISABLED="no"
More information about the Python-checkins
mailing list