summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_userstring.py
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2014-10-13 02:00:10 (GMT)
committerTerry Jan Reedy <tjreedy@udel.edu>2014-10-13 02:00:10 (GMT)
commitc0dc65ef8da3fe2a6543643a5d9d96c7a618cc65 (patch)
treecf19692f6f2da489162f3bae0f713019d399a123 /Lib/test/test_userstring.py
parent54edfb3eef77b2b6816e1790c38b39c53bfdc408 (diff)
downloadcpython-c0dc65ef8da3fe2a6543643a5d9d96c7a618cc65.zip
cpython-c0dc65ef8da3fe2a6543643a5d9d96c7a618cc65.tar.gz
cpython-c0dc65ef8da3fe2a6543643a5d9d96c7a618cc65.tar.bz2
Change deprecated Exception.message to Exception.args-[0] where the use of
.message is not an essential part of the test.
Diffstat (limited to 'Lib/test/test_userstring.py')
-rw-r--r--Lib/test/test_userstring.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_userstring.py b/Lib/test/test_userstring.py
index 9cca14a..c18ae54 100644
--- a/Lib/test/test_userstring.py
+++ b/Lib/test/test_userstring.py
@@ -33,7 +33,7 @@ class UserStringTest(
# we don't fix the arguments, because UserString can't cope with it
with self.assertRaises(exc) as cm:
getattr(obj, methodname)(*args)
- self.assertNotEqual(cm.exception.message, '')
+ self.assertNotEqual(cm.exception.args[0], '')
def checkcall(self, object, methodname, *args):
object = self.fixtype(object)