summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2014-09-23 14:10:03 +0000
committerDamien George <damien.p.george@gmail.com>2014-09-23 14:15:45 +0000
commitd6230f62c785c6c1ef1797500617c33e24607980 (patch)
treedf12c1f20b9c22de5b25224c4bbd4e1e89cac871 /tests/basics
parent96e20c600f6498c403445956077f85dd2fb548aa (diff)
downloadmicropython-d6230f62c785c6c1ef1797500617c33e24607980.tar.gz
micropython-d6230f62c785c6c1ef1797500617c33e24607980.zip
py: Make native emitter handle multi-compare and not/is not/not in ops.
Diffstat (limited to 'tests/basics')
-rw-r--r--tests/basics/containment.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/basics/containment.py b/tests/basics/containment.py
index 84d40b4e8f..f8be04e929 100644
--- a/tests/basics/containment.py
+++ b/tests/basics/containment.py
@@ -4,12 +4,12 @@ for i in 1, 2:
print("{} not in {}: {}".format(i, o, i not in o))
haystack = "supercalifragilistc"
-for needle in (haystack[i:] for i in range(len(haystack))):
+for needle in [haystack[i:] for i in range(len(haystack))]:
print(needle, "in", haystack, "::", needle in haystack)
print(needle, "not in", haystack, "::", needle not in haystack)
print(haystack, "in", needle, "::", haystack in needle)
print(haystack, "not in", needle, "::", haystack not in needle)
-for needle in (haystack[:i+1] for i in range(len(haystack))):
+for needle in [haystack[:i+1] for i in range(len(haystack))]:
print(needle, "in", haystack, "::", needle in haystack)
print(needle, "not in", haystack, "::", needle not in haystack)
print(haystack, "in", needle, "::", haystack in needle)