bpo-31432: Revert unrelated code changes to _ssl.c and test_ssl (GH-7650) (GH-7651)

(cherry picked from commit 4531ec74c4a9c8e15ee2bdec11b12796ce000f6f)

Co-authored-by: Ned Deily <nad@python.org>
diff --git a/Modules/_ssl.c b/Modules/_ssl.c
index 991b38a..bf379f0 100644
--- a/Modules/_ssl.c
+++ b/Modules/_ssl.c
@@ -2067,7 +2067,7 @@
         SSL_set_SSL_CTX(self->ssl, self->ctx->ctx);
 #endif
     } else {
-        PyErr_SetString(PyExc_TypeError, "The value must be an SSLContext.");
+        PyErr_SetString(PyExc_TypeError, "The value must be a SSLContext");
         return -1;
     }
 
@@ -2726,7 +2726,7 @@
     int result;
 
     if (!PySSLSession_Check(value)) {
-        PyErr_SetString(PyExc_TypeError, "Value is not an SSLSession.");
+        PyErr_SetString(PyExc_TypeError, "Value is not a SSLSession.");
         return -1;
     }
     pysess = (PySSLSession *)value;