[Python-checkins] r54030 - python/branches/p3yk_no_args_on_exc/Lib/test/test_pyexpat.py

brett.cannon python-checkins at python.org
Wed Feb 28 19:34:47 CET 2007


Author: brett.cannon
Date: Wed Feb 28 19:34:47 2007
New Revision: 54030

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


Modified: python/branches/p3yk_no_args_on_exc/Lib/test/test_pyexpat.py
==============================================================================
--- python/branches/p3yk_no_args_on_exc/Lib/test/test_pyexpat.py	(original)
+++ python/branches/p3yk_no_args_on_exc/Lib/test/test_pyexpat.py	Wed Feb 28 19:34:47 2007
@@ -322,7 +322,7 @@
 try:
     parser.Parse("<a><b><c/></b></a>", 1)
 except RuntimeError as e:
-    if e.args[0] != "a":
+    if e.message != "a":
         print("Expected RuntimeError for element 'a'; found %r" % e.args[0])
 else:
     print("Expected RuntimeError for 'a'")


More information about the Python-checkins mailing list