Development of an internal social media platform with personalised dashboards for students
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
1234567891011121314 |
- """ Testing with statements that use generators. This should not crash. """
-
- 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
|