From: Mark Dickinson Date: Sun, 16 Mar 2008 02:29:03 +0000 (+0000) Subject: Fix failing test test_bool following merge from trunk. X-Git-Tag: v3.0a4~161 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0eb6f69fc3d0e827118ed3b070fabbb79902fab2;p=python Fix failing test test_bool following merge from trunk. --- diff --git a/Lib/test/test_struct.py b/Lib/test/test_struct.py index a81555585b..61b5f6ce26 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)