diff options
author | Facundo Batista <facundobatista@gmail.com> | 2007-04-10 03:00:37 +0000 |
---|---|---|
committer | Facundo Batista <facundobatista@gmail.com> | 2007-04-10 03:00:37 +0000 |
commit | 3bdc002e395ed8d4a023f6f49165d951aef62889 (patch) | |
tree | e88d399f8141657398418bf73a5464aac7945a30 /Lib | |
parent | d5b3fed17d977c443f3bec770226a434e4334aa7 (diff) | |
download | cpython-git-3bdc002e395ed8d4a023f6f49165d951aef62889.tar.gz |
Minor fix to the tests pass ok even with -O.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_socket_ssl.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_socket_ssl.py b/Lib/test/test_socket_ssl.py index cf63288118..eb9bc9ea5d 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: |