blob: 187bdcfeaa9aa43050d30fa33fed87daa3c70418 [file] [log] [blame]
""" Testing with statements that use generators. This should not crash. """
# pylint: disable=useless-object-inheritance
class Base(object):
""" Base class. """
val = 0
def gen(self):
""" A generator. """
yield self.val
def fun(self):
""" With statement using a generator. """
with self.gen(): # [not-context-manager]
pass