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

Method test_negative_32b_binunicode

Lib/test/pickletester.py:976–980  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

974
975 @requires_32b
976 def test_negative_32b_binunicode(self):
977 # On 32-bit builds, a BINUNICODE of 2**31 or more is refused
978 dumped = b'\x80\x03X\xff\xff\xff\xffxyzq\x00.'
979 self.check_unpickling_error((pickle.UnpicklingError, OverflowError),
980 dumped)
981
982 def test_short_binunicode(self):
983 dumped = b'\x80\x04\x8c\x04\xe2\x82\xac\x00.'

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected