From c937dc2ccb654a50e95551beb4c7379b7b357c75 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Wed, 7 Jul 2010 18:44:05 +0000 Subject: [PATCH] this needn't be in the loop --- Lib/test/test_struct.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_struct.py b/Lib/test/test_struct.py index d574bd717df..84482869937 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)