[Python-checkins] r71987 - python/branches/py3k/Lib/test/support.py
eric.smith
python-checkins at python.org
Sun Apr 26 23:26:45 CEST 2009
Author: eric.smith
Date: Sun Apr 26 23:26:45 2009
New Revision: 71987
Log:
Fixed 2.x-ism.
Modified:
python/branches/py3k/Lib/test/support.py
Modified: python/branches/py3k/Lib/test/support.py
==============================================================================
--- python/branches/py3k/Lib/test/support.py (original)
+++ python/branches/py3k/Lib/test/support.py Sun Apr 26 23:26:45 2009
@@ -804,8 +804,8 @@
# Returns a tuple ({platform_name: run_me}, default_value)
if not guards:
return ({'cpython': True}, False)
- is_true = guards.values()[0]
- assert guards.values() == [is_true] * len(guards) # all True or all False
+ is_true = list(guards.values())[0]
+ assert list(guards.values()) == [is_true] * len(guards) # all True or all False
return (guards, not is_true)
# Use the following check to guard CPython's implementation-specific tests --
More information about the Python-checkins
mailing list