summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_userstring.py
diff options
context:
space:
mode:
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)