Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 886b40a

Browse files
committed
Fixed 2.x-ism.
1 parent bd87552 commit 886b40a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/test/support.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -804,8 +804,8 @@ def _parse_guards(guards):
804804
# Returns a tuple ({platform_name: run_me}, default_value)
805805
if not guards:
806806
return ({'cpython': True}, False)
807-
is_true = guards.values()[0]
808-
assert guards.values() == [is_true] * len(guards) # all True or all False
807+
is_true = list(guards.values())[0]
808+
assert list(guards.values()) == [is_true] * len(guards) # all True or all False
809809
return (guards, not is_true)
810810

811811
# Use the following check to guard CPython's implementation-specific tests --

0 commit comments

Comments
 (0)