summaryrefslogtreecommitdiff
path: root/Lib/test/test_contextlib.py
diff options
context:
space:
mode:
authorNick Coghlan <ncoghlan@gmail.com>2006-04-24 04:59:28 +0000
committerNick Coghlan <ncoghlan@gmail.com>2006-04-24 04:59:28 +0000
commit0e01962d51e4509d864419240c393cc27187ccd1 (patch)
tree1c1d9dfcbb1085427e7ec2cdab766be16ee1e311 /Lib/test/test_contextlib.py
parentda2268feecd4b956161ed7fdd05da125606189cc (diff)
downloadcpython-git-0e01962d51e4509d864419240c393cc27187ccd1.tar.gz
Fix broken contextlib test from last checkin (I'd've sworn I tested that before checking it in. . .)
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):