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

Method test_rsplit_bytearray

Lib/test/test_bytes.py:2285–2286  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

2283 self.assertEqual(b'a b'.split(memoryview(b' ')), [b'a', b'b'])
2284
2285 def test_rsplit_bytearray(self):
2286 self.assertEqual(b'a b'.rsplit(memoryview(b' ')), [b'a', b'b'])
2287
2288 def test_return_self(self):
2289 # bytearray.replace must always return a new bytearray

Callers

nothing calls this directly

Calls 2

assertEqualMethod · 0.45
rsplitMethod · 0.45

Tested by

no test coverage detected