From 3bdc002e395ed8d4a023f6f49165d951aef62889 Mon Sep 17 00:00:00 2001 From: Facundo Batista Date: Tue, 10 Apr 2007 03:00:37 +0000 Subject: [PATCH] Minor fix to the tests pass ok even with -O. --- Lib/test/test_socket_ssl.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_socket_ssl.py b/Lib/test/test_socket_ssl.py index cf63288118..eb9bc9ea5d 100644 --- a/Lib/test/test_socket_ssl.py +++ b/Lib/test/test_socket_ssl.py @@ -150,7 +150,8 @@ class OpenSSLServer(threading.Thread): s = socket.socket() s.connect(("localhost", 4433)) s.close() - assert self.s.stdout.readline() == "ERROR\n" + if self.s.stdout.readline() != "ERROR\n": + raise ValuError except: self.haveServer = False else: -- 2.50.1