[Python-checkins] r46515 - python/trunk/Lib/test/regrtest.py
armin.rigo
python-checkins at python.org
Mon May 29 00:07:09 CEST 2006
Author: armin.rigo
Date: Mon May 29 00:07:08 2006
New Revision: 46515
Modified:
python/trunk/Lib/test/regrtest.py
Log:
A clearer error message when passing -R to regrtest.py with
release builds of Python.
Modified: python/trunk/Lib/test/regrtest.py
==============================================================================
--- python/trunk/Lib/test/regrtest.py (original)
+++ python/trunk/Lib/test/regrtest.py Mon May 29 00:07:08 2006
@@ -513,6 +513,9 @@
else:
cfp = cStringIO.StringIO()
if huntrleaks:
+ if not hasattr(sys, 'gettotalrefcount'):
+ raise Exception("Tracking reference leaks requires a debug build "
+ "of Python")
refrep = open(huntrleaks[2], "a")
try:
save_stdout = sys.stdout
More information about the Python-checkins
mailing list