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

Method test_large_subn

Lib/test/test_re.py:2038–2043  ·  view source on GitHub ↗
(self, size)

Source from the content-addressed store, hash-verified

2036 # to create the replacement result.
2037 @bigmemtest(size=_2G, memuse=16 + 2)
2038 def test_large_subn(self, size):
2039 # Issue #10182: indices were 32-bit-truncated.
2040 s = 'a' * size
2041 r, n = re.subn('', '', s)
2042 self.assertEqual(r, s)
2043 self.assertEqual(n, size + 1)
2044
2045 def test_bug_16688(self):
2046 # Issue 16688: Backreferences make case-insensitive regex fail on

Callers

nothing calls this directly

Calls 2

subnMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected