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

Method test_memoryview_hex

Lib/test/test_memoryview.py:638–643  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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):

Callers

nothing calls this directly

Calls 2

assertEqualMethod · 0.45
hexMethod · 0.45

Tested by

no test coverage detected