[Python-checkins] r45685 - python/trunk/Lib/test/test_contextlib.py

nick.coghlan python-checkins at python.org
Mon Apr 24 06:59:29 CEST 2006


Author: nick.coghlan
Date: Mon Apr 24 06:59:28 2006
New Revision: 45685

Modified:
   python/trunk/Lib/test/test_contextlib.py
Log:
Fix broken contextlib test from last checkin (I'd've sworn I tested that before checking it in. . .)

Modified: python/trunk/Lib/test/test_contextlib.py
==============================================================================
--- python/trunk/Lib/test/test_contextlib.py	(original)
+++ python/trunk/Lib/test/test_contextlib.py	Mon Apr 24 06:59:28 2006
@@ -152,6 +152,8 @@
         def a():
             yield 1
         class b(object):
+            def __context__(self):
+                return self
             def __enter__(self):
                 return 2
             def __exit__(self, *exc_info):


More information about the Python-checkins mailing list