summaryrefslogtreecommitdiff
path: root/tests/functional/genexp_in_class_scope.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/functional/genexp_in_class_scope.py')
-rw-r--r--tests/functional/genexp_in_class_scope.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/functional/genexp_in_class_scope.py b/tests/functional/genexp_in_class_scope.py
new file mode 100644
index 000000000..868cf6b79
--- /dev/null
+++ b/tests/functional/genexp_in_class_scope.py
@@ -0,0 +1,6 @@
+# pylint: disable=W0232,R0903, missing-docstring, useless-object-inheritance
+"""Class scope must be handled correctly in genexps"""
+
+class MyClass(object):
+ var1 = []
+ var2 = list(value*2 for value in var1)