commit | a6123abb72431f0dda92044727b10177c75a02eb | [log] [tgz] |
---|---|---|
author | Armin Rigo <arigo@tunes.org> | Sun May 28 22:07:08 2006 +0000 |
committer | Armin Rigo <arigo@tunes.org> | Sun May 28 22:07:08 2006 +0000 |
tree | b14bd24100ed1273539fae82347115c5e4322d7f | |
parent | 5f6861df9300f455d600b6cd237faf429d9a06b0 [diff] [blame] |
A clearer error message when passing -R to regrtest.py with release builds of Python.
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py index 86961b0..314e7e1 100755 --- a/Lib/test/regrtest.py +++ b/Lib/test/regrtest.py
@@ -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