Commit c937dc2c authored by Benjamin Peterson's avatar Benjamin Peterson

this needn't be in the loop

parent be64d951
...@@ -503,8 +503,8 @@ class StructTest(unittest.TestCase): ...@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment