diff options
Diffstat (limited to 'Lib/test/test_struct.py')
-rw-r--r-- | Lib/test/test_struct.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_struct.py b/Lib/test/test_struct.py index 70eed6e..d574bd7 100644 --- a/Lib/test/test_struct.py +++ b/Lib/test/test_struct.py @@ -510,6 +510,8 @@ class StructTest(unittest.TestCase): hugecount = '{}b'.format(sys.maxsize+1) self.assertRaises(struct.error, struct.calcsize, hugecount) + hugecount2 = '{}b{}H'.format(sys.maxsize//2, sys.maxsize//2) + self.assertRaises(struct.error, struct.calcsize, hugecount2) if IS32BIT: def test_crasher(self): |