[Python-checkins] r54041 - python/branches/p3yk_no_args_on_exc/Lib/test/test_userdict.py

brett.cannon python-checkins at python.org
Wed Feb 28 22:29:49 CET 2007


Author: brett.cannon
Date: Wed Feb 28 22:29:47 2007
New Revision: 54041

Modified:
   python/branches/p3yk_no_args_on_exc/Lib/test/test_userdict.py
Log:
Fix for BaseException.args removal.


Modified: python/branches/p3yk_no_args_on_exc/Lib/test/test_userdict.py
==============================================================================
--- python/branches/p3yk_no_args_on_exc/Lib/test/test_userdict.py	(original)
+++ python/branches/p3yk_no_args_on_exc/Lib/test/test_userdict.py	Wed Feb 28 22:29:47 2007
@@ -169,7 +169,7 @@
         try:
             e[42]
         except RuntimeError as err:
-            self.assertEqual(err.args, (42,))
+            self.assertEqual(err.message, 42)
         else:
             self.fail_("e[42] didn't raise RuntimeError")
         class F(UserDict.UserDict):
@@ -181,7 +181,7 @@
         try:
             f[42]
         except KeyError as err:
-            self.assertEqual(err.args, (42,))
+            self.assertEqual(err.message, 42)
         else:
             self.fail_("f[42] didn't raise KeyError")
         class G(UserDict.UserDict):
@@ -190,7 +190,7 @@
         try:
             g[42]
         except KeyError as err:
-            self.assertEqual(err.args, (42,))
+            self.assertEqual(err.message, 42)
         else:
             self.fail_("g[42] didn't raise KeyError")
 


More information about the Python-checkins mailing list