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

Method test_match_getitem

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

Source from the content-addressed store, hash-verified

607 self.assertRaises(TypeError, len, m)
608
609 def test_match_getitem(self):
610 pat = re.compile('(?:(?P<a1>a)|(?P<b2>b))(?P<c3>c)?')
611 self.do_test_match_getitem(pat.match)
612
613 def test_prefixmatch_getitem(self):
614 pat = re.compile('(?:(?P<a1>a)|(?P<b2>b))(?P<c3>c)?')

Callers

nothing calls this directly

Calls 2

do_test_match_getitemMethod · 0.95
compileMethod · 0.45

Tested by

no test coverage detected