[Python-checkins] r74243 - python/trunk/Lib/test/regrtest.py
amaury.forgeotdarc
python-checkins at python.org
Tue Jul 28 22:47:55 CEST 2009
Author: amaury.forgeotdarc
Date: Tue Jul 28 22:47:55 2009
New Revision: 74243
Log:
"Fix" for the refleak report: the ABC classes are now in the _pyio module
Modified:
python/trunk/Lib/test/regrtest.py
Modified: python/trunk/Lib/test/regrtest.py
==============================================================================
--- python/trunk/Lib/test/regrtest.py (original)
+++ python/trunk/Lib/test/regrtest.py Tue Jul 28 22:47:55 2009
@@ -746,7 +746,7 @@
False if the test didn't leak references; True if we detected refleaks.
"""
# This code is hackish and inelegant, but it seems to do the job.
- import copy_reg, _abcoll, io
+ import copy_reg, _abcoll, _pyio
if not hasattr(sys, 'gettotalrefcount'):
raise Exception("Tracking reference leaks requires a debug build "
@@ -757,7 +757,7 @@
ps = copy_reg.dispatch_table.copy()
pic = sys.path_importer_cache.copy()
abcs = {}
- modules = _abcoll, io
+ modules = _abcoll, _pyio
for abc in [getattr(mod, a) for mod in modules for a in mod.__all__]:
# XXX isinstance(abc, ABCMeta) leads to infinite recursion
if not hasattr(abc, '_abc_registry'):
More information about the Python-checkins
mailing list