diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2008-03-16 02:29:03 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2008-03-16 02:29:03 (GMT) |
commit | 0eb6f69fc3d0e827118ed3b070fabbb79902fab2 (patch) | |
tree | 5687e3d01b331843d8f1a34a1506ba8e5675012b /Lib/test/test_struct.py | |
parent | 08976cb6967a071682612211579385e35fd68eda (diff) | |
download | cpython-0eb6f69fc3d0e827118ed3b070fabbb79902fab2.zip cpython-0eb6f69fc3d0e827118ed3b070fabbb79902fab2.tar.gz cpython-0eb6f69fc3d0e827118ed3b070fabbb79902fab2.tar.bz2 |
Fix failing test test_bool following merge from trunk.
Diffstat (limited to 'Lib/test/test_struct.py')
-rw-r--r-- | Lib/test/test_struct.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_struct.py b/Lib/test/test_struct.py index a815555..61b5f6c 100644 --- a/Lib/test/test_struct.py +++ b/Lib/test/test_struct.py @@ -682,7 +682,7 @@ def test_bool(): elif not prefix and verbose: print('size of bool in native format is %i' % (len(packed))) - for c in b'\x01\x7f\xff\x0f\xf0': + for c in [b'\x01', b'\x7f', b'\xff', b'\x0f', b'\xf0']: if struct.unpack('>?', c)[0] is not True: raise TestFailed('%c did not unpack as True' % c) |