MCPcopy Index your code
hub / github.com/python/cpython / test_1530559

Method test_1530559

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

Source from the content-addressed store, hash-verified

414 self.assertRaises(OverflowError, struct.pack, "e", big)
415
416 def test_1530559(self):
417 for code, byteorder in iter_integer_formats():
418 format = byteorder + code
419 self.assertRaises(struct.error, struct.pack, format, 1.0)
420 self.assertRaises(struct.error, struct.pack, format, 1.5)
421 self.assertRaises(struct.error, struct.pack, 'P', 1.0)
422 self.assertRaises(struct.error, struct.pack, 'P', 1.5)
423
424 def test_unpack_from(self):
425 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