bpo-22559: Implementation of the PEP 546: Backport MemoryBIO by vstinner · Pull Request #2133 · python/cpython (original) (raw)

Sigh, it took quite a while, but the answer is that svn.python.org doesn't behave the exact way these tests expect. There's a reason we ported all the rest of the tests away from it :-(

Switching to REMOTE_HOST fixes test_read_write_data, but it looks like test_handshake is really only happy with the in-memoryserver that the py3k versions of these tests use.

Here's the diff I used to do all this testing:

diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index 4e34734662..c99db781c1 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -1757,17 +1757,17 @@ class NetworkedBIOTests(unittest.TestCase): return ret

 def test_handshake(self):

@@ -1786,9 +1786,9 @@ class NetworkedBIOTests(unittest.TestCase): sock.close()

 def test_read_write_data(self):