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

Method test_bug_113254

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

Source from the content-addressed store, hash-verified

1567 self.checkPatternError(r"[b-a]", 'bad character range b-a', 1)
1568
1569 def test_bug_113254(self):
1570 self.assertEqual(re.match(r'(a)|(b)', 'b').start(1), -1)
1571 self.assertEqual(re.match(r'(a)|(b)', 'b').end(1), -1)
1572 self.assertEqual(re.match(r'(a)|(b)', 'b').span(1), (-1, -1))
1573
1574 def test_bug_527371(self):
1575 # bug described in patches 527371/672491

Callers

nothing calls this directly

Calls 4

assertEqualMethod · 0.45
startMethod · 0.45
matchMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected