this needn't be in the loop

This commit is contained in:
Benjamin Peterson 2010-07-07 18:44:05 +00:00
parent be64d95169
commit c937dc2ccb
1 changed files with 2 additions and 2 deletions

View File

@ -503,8 +503,8 @@ class StructTest(unittest.TestCase):
self.assertFalse(prefix, msg='encoded bool is not one byte: %r'
%packed)
for c in [b'\x01', b'\x7f', b'\xff', b'\x0f', b'\xf0']:
self.assertTrue(struct.unpack('>?', c)[0])
for c in [b'\x01', b'\x7f', b'\xff', b'\x0f', b'\xf0']:
self.assertTrue(struct.unpack('>?', c)[0])
def test_count_overflow(self):
hugecount = '{}b'.format(sys.maxsize+1)