summaryrefslogtreecommitdiffstats
path: root/Lib/test/libregrtest/runtest_mp.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-09-29 21:52:33 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-09-29 21:52:33 (GMT)
commit02319804ea4b92e11fef6adce63698da8c44052a (patch)
treef47c5e37b11f0c2f5b382ef43b28d54085045caa /Lib/test/libregrtest/runtest_mp.py
parent86e8c31b8da163eb1f412c68ef96c2a4fda7adcf (diff)
downloadcpython-02319804ea4b92e11fef6adce63698da8c44052a.zip
cpython-02319804ea4b92e11fef6adce63698da8c44052a.tar.gz
cpython-02319804ea4b92e11fef6adce63698da8c44052a.tar.bz2
Don't strip refcount in libregrtest/runtest_mp.py
Python doesn't display the refcount anymore by default. It only displays it when -X showrefcount command line option is used, which is not the case here. regrtest can be run with -X showrefcount, the option is not inherited by child processes.
Diffstat (limited to 'Lib/test/libregrtest/runtest_mp.py')
-rw-r--r--Lib/test/libregrtest/runtest_mp.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/Lib/test/libregrtest/runtest_mp.py b/Lib/test/libregrtest/runtest_mp.py
index c5a6b3d..8311ecf 100644
--- a/Lib/test/libregrtest/runtest_mp.py
+++ b/Lib/test/libregrtest/runtest_mp.py
@@ -15,9 +15,6 @@ except ImportError:
from test.libregrtest.runtest import runtest, INTERRUPTED, CHILD_ERROR
-debug_output_pat = re.compile(r"\[\d+ refs, \d+ blocks\]$")
-
-
def run_tests_in_subprocess(testname, ns):
"""Run the given test in a subprocess with --slaveargs.
@@ -105,9 +102,6 @@ class MultiprocessThread(threading.Thread):
return
retcode, stdout, stderr = run_tests_in_subprocess(test,
self.ns)
- # Strip last refcount output line if it exists, since it
- # comes from the shutdown of the interpreter in the subcommand.
- stderr = debug_output_pat.sub("", stderr)
stdout, _, result = stdout.strip().rpartition("\n")
if retcode != 0:
result = (CHILD_ERROR, "Exit code %s" % retcode)