mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
Fix failing test test_bool following merge from trunk.
This commit is contained in:
parent
08976cb696
commit
0eb6f69fc3
1 changed files with 1 additions and 1 deletions
|
@ -682,7 +682,7 @@ def test_bool():
|
||||||
elif not prefix and verbose:
|
elif not prefix and verbose:
|
||||||
print('size of bool in native format is %i' % (len(packed)))
|
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:
|
if struct.unpack('>?', c)[0] is not True:
|
||||||
raise TestFailed('%c did not unpack as True' % c)
|
raise TestFailed('%c did not unpack as True' % c)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue