summaryrefslogtreecommitdiff
path: root/tests/functional/g/genexp_in_class_scope.py
blob: 93e0ceaae263bab3fb776aceaf06afb6d9390d9d (plain)
1
2
3
4
5
6
# pylint: disable=too-few-public-methods, missing-docstring
# pylint: disable=useless-object-inheritance
"""Class scope must be handled correctly in genexps"""
class MyClass(object):
    var1 = []
    var2 = list(value*2 for value in var1)