]> granicus.if.org Git - python/commitdiff
Fixed 2.x-ism.
authorEric Smith <eric@trueblade.com>
Sun, 26 Apr 2009 21:26:45 +0000 (21:26 +0000)
committerEric Smith <eric@trueblade.com>
Sun, 26 Apr 2009 21:26:45 +0000 (21:26 +0000)
Lib/test/support.py

index 09e8574d6bb13cad30d7f6349afa4f57830d078d..bdc61645adbddd44021605474c395e4cd8f5cfff 100644 (file)
@@ -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 --