Index: Lib/test/test_ssl.py =================================================================== --- Lib/test/test_ssl.py (révision 81236) +++ Lib/test/test_ssl.py (copie de travail) @@ -81,7 +81,7 @@ pass else: print("didn't raise TypeError") - ssl.RAND_add("this is a random string", 75.0) + ssl.RAND_add(b"this is a random string", 75.0) def test_parse_cert(self): # note that this uses an 'unofficial' function in _ssl.c, Index: Modules/_ssl.c =================================================================== --- Modules/_ssl.c (révision 81237) +++ Modules/_ssl.c (copie de travail) @@ -1703,7 +1703,7 @@ int len; double entropy; - if (!PyArg_ParseTuple(args, "s#d:RAND_add", &buf, &len, &entropy)) + if (!PyArg_ParseTuple(args, "y#d:RAND_add", &buf, &len, &entropy)) return NULL; RAND_add(buf, len, entropy); Py_INCREF(Py_None);