summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_regrtest.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-03-22 14:14:09 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-03-22 14:14:09 (GMT)
commit24f949e10c4031c059118dd4b49cace16d4e3e5d (patch)
tree1adf2c329f857fa8bdad1cd5e03372644307664a /Lib/test/test_regrtest.py
parent10b73e17489048419b512f6710aecba62ff5b91a (diff)
downloadcpython-24f949e10c4031c059118dd4b49cace16d4e3e5d.zip
cpython-24f949e10c4031c059118dd4b49cace16d4e3e5d.tar.gz
cpython-24f949e10c4031c059118dd4b49cace16d4e3e5d.tar.bz2
regrtest: add time to output
Timestamps should help to debug slow buildbots, and timeout and hang on buildbots.
Diffstat (limited to 'Lib/test/test_regrtest.py')
-rw-r--r--Lib/test/test_regrtest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_regrtest.py b/Lib/test/test_regrtest.py
index 59f8c9d..18d0f46 100644
--- a/Lib/test/test_regrtest.py
+++ b/Lib/test/test_regrtest.py
@@ -351,7 +351,7 @@ class BaseTestCase(unittest.TestCase):
self.assertRegex(output, regex)
def parse_executed_tests(self, output):
- regex = r'^\[ *[0-9]+(?:/ *[0-9]+)?\] (%s)$' % self.TESTNAME_REGEX
+ regex = r'^[0-9]+:[0-9]+:[0-9]+ \[ *[0-9]+(?:/ *[0-9]+)?\] (%s)$' % self.TESTNAME_REGEX
parser = re.finditer(regex, output, re.MULTILINE)
return list(match.group(1) for match in parser)