(self)
| 636 | self.assertListEqual(half_view.tolist(), float_view.tolist()) |
| 637 | |
| 638 | def test_memoryview_hex(self): |
| 639 | # Issue #9951: memoryview.hex() segfaults with non-contiguous buffers. |
| 640 | x = b'0' * 200000 |
| 641 | m1 = memoryview(x) |
| 642 | m2 = m1[::-1] |
| 643 | self.assertEqual(m2.hex(), '30' * 200000) |
| 644 | |
| 645 | @unittest.expectedFailure # TODO: RUSTPYTHON; TypeError: Unexpected keyword argument sep |
| 646 | def test_memoryview_hex_separator(self): |
nothing calls this directly
no test coverage detected