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

Method test_uninstantiable

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

Source from the content-addressed store, hash-verified

870 s.iter_unpack(b"12")
871
872 def test_uninstantiable(self):
873 iter_unpack_type = type(struct.Struct(">ibcp").iter_unpack(b""))
874 self.assertRaises(TypeError, iter_unpack_type)
875
876 def test_iterate(self):
877 s = struct.Struct('>IB')

Callers

nothing calls this directly

Calls 2

iter_unpackMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected