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
1 changed files with 2 additions and 1 deletions

View File

@ -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: