summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorEric Smith <eric@trueblade.com>2009-04-26 21:26:45 (GMT)
committerEric Smith <eric@trueblade.com>2009-04-26 21:26:45 (GMT)
commit886b40aa8f9036d6b877f77f3c63abbc9653e50d (patch)
tree6368baf8209622aeb911d9841fec0649e8f8f429 /Lib/test
parentbd87552a3453539f2a70f2b7c50c2980a436c567 (diff)
downloadcpython-886b40aa8f9036d6b877f77f3c63abbc9653e50d.zip
cpython-886b40aa8f9036d6b877f77f3c63abbc9653e50d.tar.gz
cpython-886b40aa8f9036d6b877f77f3c63abbc9653e50d.tar.bz2
Fixed 2.x-ism.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/support.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/support.py b/Lib/test/support.py
index 09e8574..bdc6164 100644
--- a/Lib/test/support.py
+++ b/Lib/test/support.py
@@ -804,8 +804,8 @@ def _parse_guards(guards):
# 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 --