]> granicus.if.org Git - python/commitdiff
Fix broken contextlib test from last checkin (I'd've sworn I tested that before check...
authorNick Coghlan <ncoghlan@gmail.com>
Mon, 24 Apr 2006 04:59:28 +0000 (04:59 +0000)
committerNick Coghlan <ncoghlan@gmail.com>
Mon, 24 Apr 2006 04:59:28 +0000 (04:59 +0000)
Lib/test/test_contextlib.py

index c23e428fcbea6ce774a7d1a5db1ec00848cbdb76..1a709978ba82fddd62396ef092e416a35fe22c82 100644 (file)
@@ -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):