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

Method test_bug_448951

Lib/test/test_re.py:1672–1679  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1670 self.assertEqual(rem,'')
1671
1672 def test_bug_448951(self):
1673 # bug 448951 (similar to 429357, but with single char match)
1674 # (Also test greedy matches.)
1675 for op in '','?','*':
1676 self.assertEqual(re.match(r'((.%s):)?z'%op, 'z').groups(),
1677 (None, None))
1678 self.assertEqual(re.match(r'((.%s):)?z'%op, 'a:z').groups(),
1679 ('a:', 'a'))
1680
1681 def test_bug_725106(self):
1682 # capturing groups in alternatives in repeats

Callers

nothing calls this directly

Calls 3

assertEqualMethod · 0.45
groupsMethod · 0.45
matchMethod · 0.45

Tested by

no test coverage detected