]> granicus.if.org Git - python/commitdiff
Fix failing test test_bool following merge from trunk.
authorMark Dickinson <dickinsm@gmail.com>
Sun, 16 Mar 2008 02:29:03 +0000 (02:29 +0000)
committerMark Dickinson <dickinsm@gmail.com>
Sun, 16 Mar 2008 02:29:03 +0000 (02:29 +0000)
Lib/test/test_struct.py

index a81555585b0a794a85c9368fa79b6aa2ca64b561..61b5f6ce2622e54b5417a4a60e175ed63b9188f8 100644 (file)
@@ -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)