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_string.py b/Lib/test/test_string.py
index f69255b..e786ab6 100644
--- a/Lib/test/test_string.py
+++ b/Lib/test/test_string.py
@@ -19,7 +19,7 @@
     def checkraises(self, exc, obj, methodname, *args):
         with self.assertRaises(exc) as cm:
             getattr(string, methodname)(obj, *args)
-        self.assertNotEqual(cm.exception.message, '')
+        self.assertNotEqual(cm.exception.args[0], '')
 
     def checkcall(self, object, methodname, *args):
         getattr(string, methodname)(object, *args)