Change deprecated Exception.message to Exception.args-[0] where the use of
.message is not an essential part of the test.
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 @@
# 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)