[Python-checkins] r54019 - python/branches/p3yk_no_args_on_exc/Lib/test/test_contextlib.py

brett.cannon python-checkins at python.org
Wed Feb 28 18:39:09 CET 2007


Author: brett.cannon
Date: Wed Feb 28 18:39:04 2007
New Revision: 54019

Modified:
   python/branches/p3yk_no_args_on_exc/Lib/test/test_contextlib.py
Log:
Another BaseException.args removal fix.


Modified: python/branches/p3yk_no_args_on_exc/Lib/test/test_contextlib.py
==============================================================================
--- python/branches/p3yk_no_args_on_exc/Lib/test/test_contextlib.py	(original)
+++ python/branches/p3yk_no_args_on_exc/Lib/test/test_contextlib.py	Wed Feb 28 18:39:04 2007
@@ -77,7 +77,7 @@
             try:
                 yield 42
             except ZeroDivisionError as e:
-                state.append(e.args[0])
+                state.append(e.message)
                 self.assertEqual(state, [1, 42, 999])
         with woohoo() as x:
             self.assertEqual(state, [1])


More information about the Python-checkins mailing list