[Python-3000-checkins] r61410 - python/branches/py3k/Lib/test/test_struct.py
mark.dickinson
python-3000-checkins at python.org
Sun Mar 16 03:29:03 CET 2008
Author: mark.dickinson
Date: Sun Mar 16 03:29:03 2008
New Revision: 61410
Modified:
python/branches/py3k/Lib/test/test_struct.py
Log:
Fix failing test test_bool following merge from trunk.
Modified: python/branches/py3k/Lib/test/test_struct.py
==============================================================================
--- python/branches/py3k/Lib/test/test_struct.py (original)
+++ python/branches/py3k/Lib/test/test_struct.py Sun Mar 16 03:29:03 2008
@@ -682,7 +682,7 @@
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)
More information about the Python-3000-checkins
mailing list