MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_bug_581080

Method test_bug_581080

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

Source from the content-addressed store, hash-verified

1721 ['a','b','c'])
1722
1723 def test_bug_581080(self):
1724 iter = re.finditer(r"\s", "a b")
1725 self.assertEqual(next(iter).span(), (1,2))
1726 self.assertRaises(StopIteration, next, iter)
1727
1728 scanner = re.compile(r"\s").scanner("a b")
1729 self.assertEqual(scanner.search().span(), (1, 2))
1730 self.assertIsNone(scanner.search())
1731
1732 def test_bug_817234(self):
1733 iter = re.finditer(r".*", "asdf")

Callers

nothing calls this directly

Calls 9

nextFunction · 0.85
finditerMethod · 0.80
spanMethod · 0.80
scannerMethod · 0.80
assertIsNoneMethod · 0.80
assertEqualMethod · 0.45
assertRaisesMethod · 0.45
compileMethod · 0.45
searchMethod · 0.45

Tested by

no test coverage detected