diff options
Diffstat (limited to 'tests/functional/y/yield_from_iterable.py')
-rw-r--r-- | tests/functional/y/yield_from_iterable.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/functional/y/yield_from_iterable.py b/tests/functional/y/yield_from_iterable.py new file mode 100644 index 000000000..7803936d5 --- /dev/null +++ b/tests/functional/y/yield_from_iterable.py @@ -0,0 +1,7 @@ +""" +Check that `yield from`-statement takes an iterable. +""" +# pylint: disable=missing-docstring + +def to_ten(): + yield from 10 # [not-an-iterable] |