mirror of
https://github.com/python/cpython.git
synced 2025-09-28 11:15:17 +00:00
this needn't be in the loop
This commit is contained in:
parent
be64d95169
commit
c937dc2ccb
1 changed files with 2 additions and 2 deletions
|
@ -503,8 +503,8 @@ class StructTest(unittest.TestCase):
|
||||||
self.assertFalse(prefix, msg='encoded bool is not one byte: %r'
|
self.assertFalse(prefix, msg='encoded bool is not one byte: %r'
|
||||||
%packed)
|
%packed)
|
||||||
|
|
||||||
for c in [b'\x01', b'\x7f', b'\xff', b'\x0f', b'\xf0']:
|
for c in [b'\x01', b'\x7f', b'\xff', b'\x0f', b'\xf0']:
|
||||||
self.assertTrue(struct.unpack('>?', c)[0])
|
self.assertTrue(struct.unpack('>?', c)[0])
|
||||||
|
|
||||||
def test_count_overflow(self):
|
def test_count_overflow(self):
|
||||||
hugecount = '{}b'.format(sys.maxsize+1)
|
hugecount = '{}b'.format(sys.maxsize+1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue