Kaydet (Commit) 9aaad883 authored tarafından Neal Norwitz's avatar Neal Norwitz

Even though we don't currently use unicode or complex numbers in the test,

be complete when when checking types.

Yield cannot be tested outside a function, so add a comment to that effect.
üst be66e943
import sys, itertools
def to_tuple(t):
if t is None or isinstance(t, (str, int, long)):
if t is None or isinstance(t, (basestring, int, long, complex)):
return t
elif isinstance(t, list):
return [to_tuple(e) for e in t]
......@@ -85,8 +85,8 @@ eval_tests = [
"[a for b in c if d]",
# GeneratorExp
"(a for b in c if d)",
# Yield
#"def f():yield 3",
# Yield - yield expressions can't work outside a function
#
# Compare
"1 < 2 < 3",
# Call
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment