this needn't be in the loop
authorBenjamin Peterson <benjamin@python.org>
Wed, 7 Jul 2010 18:44:05 +0000 (18:44 +0000)
committerBenjamin Peterson <benjamin@python.org>
Wed, 7 Jul 2010 18:44:05 +0000 (18:44 +0000)
Lib/test/test_struct.py

index d574bd717df39bc8010aa6f81615149cde530047..844828699374debeac491da3c9c1f1dae1793a1b 100644 (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)