summaryrefslogtreecommitdiff
path: root/pylint/test/functional/genexpr_variable_scope.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/test/functional/genexpr_variable_scope.py')
-rw-r--r--pylint/test/functional/genexpr_variable_scope.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pylint/test/functional/genexpr_variable_scope.py b/pylint/test/functional/genexpr_variable_scope.py
new file mode 100644
index 0000000..a00d72d
--- /dev/null
+++ b/pylint/test/functional/genexpr_variable_scope.py
@@ -0,0 +1,5 @@
+"""test name defined in generator expression are not available
+outside the genexpr scope
+"""
+from __future__ import print_function
+print(n) # [undefined-variable]