From: Facundo Batista Date: Tue, 10 Apr 2007 03:00:37 +0000 (+0000) Subject: Minor fix to the tests pass ok even with -O. X-Git-Tag: v2.6a1~1854 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3bdc002e395ed8d4a023f6f49165d951aef62889;p=thirdparty%2FPython%2Fcpython.git Minor fix to the tests pass ok even with -O. --- diff --git a/Lib/test/test_socket_ssl.py b/Lib/test/test_socket_ssl.py index cf6328811859..eb9bc9ea5d6f 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: