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

Method list_regex

Lib/test/test_regrtest.py:695–700  ·  view source on GitHub ↗
(line_format, tests)

Source from the content-addressed store, hash-verified

693 return 's' if count != 1 else ''
694
695 def list_regex(line_format, tests):
696 count = len(tests)
697 names = ' '.join(sorted(tests))
698 regex = line_format % (count, plural(count))
699 regex = r'%s:\n %s$' % (regex, names)
700 return regex
701
702 if skipped:
703 regex = list_regex('%s test%s skipped', skipped)

Callers

nothing calls this directly

Calls 2

pluralFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected