From: Benjamin Peterson Date: Wed, 7 Jul 2010 18:44:05 +0000 (+0000) Subject: this needn't be in the loop X-Git-Tag: v3.2a1~282 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c937dc2ccb654a50e95551beb4c7379b7b357c75;p=python this needn't be in the loop --- diff --git a/Lib/test/test_struct.py b/Lib/test/test_struct.py index d574bd717d..8448286993 100644 --- a/Lib/test/test_struct.py +++ b/Lib/test/test_struct.py @@ -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)