From: Nick Coghlan Date: Mon, 24 Apr 2006 04:59:28 +0000 (+0000) Subject: Fix broken contextlib test from last checkin (I'd've sworn I tested that before check... X-Git-Tag: v2.5a2~41 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0e01962d51e4509d864419240c393cc27187ccd1;p=python Fix broken contextlib test from last checkin (I'd've sworn I tested that before checking it in. . .) --- 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):