MCPcopy Index your code
hub / github.com/python/cpython / check_line

Method check_line

Lib/test/test_regrtest.py:636–642  ·  view source on GitHub ↗
(self, output, pattern, full=False, regex=True)

Source from the content-addressed store, hash-verified

634 return match
635
636 def check_line(self, output, pattern, full=False, regex=True):
637 if not regex:
638 pattern = re.escape(pattern)
639 if full:
640 pattern += '\n'
641 regex = re.compile(r'^' + pattern, re.MULTILINE)
642 self.assertRegex(output, regex)
643
644 def parse_executed_tests(self, output):
645 regex = (fr'^{LOG_PREFIX}\[ *[0-9]+(?:/ *[0-9]+)*\] '

Callers 9

check_executed_testsMethod · 0.95
test_randomMethod · 0.80
test_slowestMethod · 0.80
test_coverageMethod · 0.80
test_waitMethod · 0.80
check_leakMethod · 0.80

Calls 3

escapeMethod · 0.80
assertRegexMethod · 0.80
compileMethod · 0.45

Tested by

no test coverage detected