summaryrefslogtreecommitdiff
path: root/Lib/test/test_contextlib.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_contextlib.py')
-rw-r--r--Lib/test/test_contextlib.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_contextlib.py b/Lib/test/test_contextlib.py
index c23e428fcb..1a709978ba 100644
--- a/Lib/test/test_contextlib.py
+++ b/Lib/test/test_contextlib.py
@@ -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):