]> granicus.if.org Git - python/commitdiff
Minor fix to the tests pass ok even with -O.
authorFacundo Batista <facundobatista@gmail.com>
Tue, 10 Apr 2007 03:00:37 +0000 (03:00 +0000)
committerFacundo Batista <facundobatista@gmail.com>
Tue, 10 Apr 2007 03:00:37 +0000 (03:00 +0000)
Lib/test/test_socket_ssl.py

index cf632881185988f38a92bec068662a43becc849d..eb9bc9ea5d6ffdba7f65732a0c06b7a3a5b4ece2 100644 (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: