summaryrefslogtreecommitdiff
path: root/pylint/test/functional/yield_from_iterable_py33.py
diff options
context:
space:
mode:
authorDmitry Pribysh <dmand@yandex.ru>2015-10-18 18:38:06 +0300
committerDmitry Pribysh <dmand@yandex.ru>2015-10-18 18:38:06 +0300
commitb12c2803500c0b883b3a12b4cfc0b174ac52c4f8 (patch)
treecec7e8070513571385aefff8c0a8c8fecd449710 /pylint/test/functional/yield_from_iterable_py33.py
parent5c8335754a164bc8073bc8623a887894fe4e8c24 (diff)
parent6c6ec4a713118136ccdd9117693078e15fcccbbe (diff)
downloadpylint-iterable-checker.tar.gz
Merge with defaultiterable-checker
Diffstat (limited to 'pylint/test/functional/yield_from_iterable_py33.py')
-rw-r--r--pylint/test/functional/yield_from_iterable_py33.py7
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]