summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics
diff options
context:
space:
mode:
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)