diff options
Diffstat (limited to 'pylint/test/functional/yield_from_iterable_py33.py')
-rw-r--r-- | pylint/test/functional/yield_from_iterable_py33.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pylint/test/functional/yield_from_iterable_py33.py b/pylint/test/functional/yield_from_iterable_py33.py new file mode 100644 index 0000000..7803936 --- /dev/null +++ b/pylint/test/functional/yield_from_iterable_py33.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] |