mirror of
https://github.com/python/cpython.git
synced 2025-11-01 02:38:53 +00:00
Fix broken contextlib test from last checkin (I'd've sworn I tested that before checking it in. . .)
This commit is contained in:
parent
da2268feec
commit
0e01962d51
1 changed files with 2 additions and 0 deletions
|
|
@ -152,6 +152,8 @@ class NestedTestCase(unittest.TestCase):
|
|||
def a():
|
||||
yield 1
|
||||
class b(object):
|
||||
def __context__(self):
|
||||
return self
|
||||
def __enter__(self):
|
||||
return 2
|
||||
def __exit__(self, *exc_info):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue