Minor fix to the tests pass ok even with -O.

This commit is contained in:
Facundo Batista 2007-04-10 03:00:37 +00:00
parent d5b3fed17d
commit 3bdc002e39

View file

@ -150,7 +150,8 @@ class OpenSSLServer(threading.Thread):
s = socket.socket() s = socket.socket()
s.connect(("localhost", 4433)) s.connect(("localhost", 4433))
s.close() s.close()
assert self.s.stdout.readline() == "ERROR\n" if self.s.stdout.readline() != "ERROR\n":
raise ValuError
except: except:
self.haveServer = False self.haveServer = False
else: else: