mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
Minor fix to the tests pass ok even with -O.
This commit is contained in:
parent
d5b3fed17d
commit
3bdc002e39
1 changed files with 2 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue