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

Method test_1530559

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

Source from the content-addressed store, hash-verified

400 self.assertRaises(OverflowError, struct.pack, ">f", big)
401
402 def test_1530559(self):
403 for code, byteorder in iter_integer_formats():
404 format = byteorder + code
405 self.assertRaises(struct.error, struct.pack, format, 1.0)
406 self.assertRaises(struct.error, struct.pack, format, 1.5)
407 self.assertRaises(struct.error, struct.pack, 'P', 1.0)
408 self.assertRaises(struct.error, struct.pack, 'P', 1.5)
409
410 def test_unpack_from(self):
411 test_string = b'abcd01234'

Callers

nothing calls this directly

Calls 2

iter_integer_formatsFunction · 0.85
assertRaisesMethod · 0.45

Tested by

no test coverage detected