(self)
| 1728 | self.assertEqual(b, b'A') |
| 1729 | |
| 1730 | def test_copied(self): |
| 1731 | # Issue 4348. Make sure that operations that don't mutate the array |
| 1732 | # copy the bytes. |
| 1733 | b = bytearray(b'abc') |
| 1734 | self.assertIsNot(b, b.replace(b'abc', b'cde', 0)) |
| 1735 | |
| 1736 | t = bytearray([i for i in range(256)]) |
| 1737 | x = bytearray(b'') |
| 1738 | self.assertIsNot(x, x.translate(t)) |
| 1739 | |
| 1740 | def test_partition_bytearray_doesnt_share_nullstring(self): |
| 1741 | a, b, c = bytearray(b"x").partition(b"y") |
nothing calls this directly
no test coverage detected