[Python-checkins] r54729 - python/trunk/Lib/test/test_socket_ssl.py

facundo.batista python-checkins at python.org
Tue Apr 10 05:00:43 CEST 2007


Author: facundo.batista
Date: Tue Apr 10 05:00:37 2007
New Revision: 54729

Modified:
   python/trunk/Lib/test/test_socket_ssl.py
Log:

Minor fix to the tests pass ok even with -O.


Modified: python/trunk/Lib/test/test_socket_ssl.py
==============================================================================
--- python/trunk/Lib/test/test_socket_ssl.py	(original)
+++ python/trunk/Lib/test/test_socket_ssl.py	Tue Apr 10 05:00:37 2007
@@ -150,7 +150,8 @@
                 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:


More information about the Python-checkins mailing list