summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorFacundo Batista <facundobatista@gmail.com>2007-04-10 03:00:37 +0000
committerFacundo Batista <facundobatista@gmail.com>2007-04-10 03:00:37 +0000
commit3bdc002e395ed8d4a023f6f49165d951aef62889 (patch)
treee88d399f8141657398418bf73a5464aac7945a30 /Lib
parentd5b3fed17d977c443f3bec770226a434e4334aa7 (diff)
downloadcpython-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.py3
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: