mirror of https://github.com/python/cpython
Minor fix to the tests pass ok even with -O.
This commit is contained in:
parent
d5b3fed17d
commit
3bdc002e39
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue