summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/generator1.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics/generator1.py')
-rw-r--r--tests/basics/generator1.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/basics/generator1.py b/tests/basics/generator1.py
index d4028b0ce3..ea1d3b38bc 100644
--- a/tests/basics/generator1.py
+++ b/tests/basics/generator1.py
@@ -20,3 +20,6 @@ for val in f(3):
#print(gen.__next__())
#print(gen.__next__())
#print(gen.__next__())
+
+# test printing, but only the first chars that match CPython
+print(repr(f(0))[0:17])