projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be64d95
)
this needn't be in the loop
author
Benjamin Peterson
<benjamin@python.org>
Wed, 7 Jul 2010 18:44:05 +0000
(18:44 +0000)
committer
Benjamin Peterson
<benjamin@python.org>
Wed, 7 Jul 2010 18:44:05 +0000
(18:44 +0000)
Lib/test/test_struct.py
patch
|
blob
|
history
diff --git
a/Lib/test/test_struct.py
b/Lib/test/test_struct.py
index d574bd717df39bc8010aa6f81615149cde530047..844828699374debeac491da3c9c1f1dae1793a1b 100644
(file)
--- 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)