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

Method test_unsupported

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

Source from the content-addressed store, hash-verified

1093 -0x123456789abcdf0)
1094
1095 def test_unsupported(self):
1096 unsupported = [*range(1, 8), *range(10, 15),
1097 0x20, 0x21, *range(0x24, 0x33), *range(0x34, 0x40)]
1098 for i in [0x70, 0x90, 0xb0, 0xc0, 0xe0, 0xf0]:
1099 unsupported.extend(i + j for j in range(16))
1100 for token in unsupported:
1101 with self.subTest(f'token {token:02x}'):
1102 with self.assertRaises(plistlib.InvalidFileException):
1103 self.decode(bytes([token]) + b'\x00'*16)
1104
1105 def test_invalid_binary(self):
1106 for name, data in INVALID_BINARY_PLISTS:

Callers

nothing calls this directly

Calls 4

decodeMethod · 0.95
extendMethod · 0.45
subTestMethod · 0.45
assertRaisesMethod · 0.45

Tested by

no test coverage detected