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

Method test_keep_buffer

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

Source from the content-addressed store, hash-verified

68
69 @unittest.expectedFailure # TODO: RUSTPYTHON
70 def test_keep_buffer(self):
71 # See bug 14212
72 b = bytearray(b'x')
73 it = re.finditer(b'a', b)
74 with self.assertRaises(BufferError):
75 b.extend(b'x'*400)
76 list(it)
77 del it
78 gc_collect()
79 b.extend(b'x'*400)
80
81 def test_weakref(self):
82 s = 'QabbbcR'

Callers

nothing calls this directly

Calls 5

gc_collectFunction · 0.90
listClass · 0.85
finditerMethod · 0.80
assertRaisesMethod · 0.45
extendMethod · 0.45

Tested by

no test coverage detected