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

Method test_repr

Lib/test/test_struct.py:801–803  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

799 self.assertEqual(my_struct.pack(12345), b'\x30\x39')
800
801 def test_repr(self):
802 s = struct.Struct('=i2H')
803 self.assertEqual(repr(s), f'Struct({s.format!r})')
804
805 @unittest.expectedFailure # TODO: RUSTPYTHON
806 def test_c_complex_round_trip(self):

Callers

nothing calls this directly

Calls 2

reprFunction · 0.85
assertEqualMethod · 0.45

Tested by

no test coverage detected