comparison tests/common-pattern.py @ 51281:8f1983318455

common-pattern: cover "elapsed time" line These are perfect targets for the common-pattern matching.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 13 Dec 2023 13:46:28 +0100
parents e2632d9d1b6e
children e3ed64dfd8ff
comparison
equal deleted inserted replaced
51278:6113221a1dea 51281:8f1983318455
124 ), 124 ),
125 # `discovery debug output 125 # `discovery debug output
126 ( 126 (
127 br'\b(\d+) total queries in \d.\d\d\d\ds\b', 127 br'\b(\d+) total queries in \d.\d\d\d\ds\b',
128 lambda m: (br'%s total queries in *.????s (glob)' % m.group(1)), 128 lambda m: (br'%s total queries in *.????s (glob)' % m.group(1)),
129 ),
130 (
131 br'\belapsed time: \d+.\d{6} seconds\b',
132 br'elapsed time: *.?????? seconds (glob)',
129 ), 133 ),
130 ] 134 ]
131 135
132 # Various platform error strings, keyed on a common replacement string 136 # Various platform error strings, keyed on a common replacement string
133 _errors = { 137 _errors = {