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

Method test_modified_uid_huge

Lib/test/test_plistlib.py:925–929  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

923 plistlib.dumps(neg_uid, fmt=plistlib.FMT_BINARY)
924
925 def test_modified_uid_huge(self):
926 huge_uid = UID(1)
927 huge_uid.data = 2 ** 64 # dodge the size check in the constructor
928 with self.assertRaises(OverflowError):
929 plistlib.dumps(huge_uid, fmt=plistlib.FMT_BINARY)
930
931 def test_xml_plist_with_entity_decl(self):
932 with self.assertRaisesRegex(plistlib.InvalidFileException,

Callers

nothing calls this directly

Calls 3

UIDClass · 0.90
assertRaisesMethod · 0.45
dumpsMethod · 0.45

Tested by

no test coverage detected