From: Antoine Pitrou Date: Wed, 28 Apr 2010 22:57:15 +0000 (+0000) Subject: Fix test failure with -bb X-Git-Tag: v3.2a1~974 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=764b8780db08cf02891b2d7bdce920ae167f8188;p=python Fix test failure with -bb --- diff --git a/Lib/test/test_ssl.py b/Lib/test/test_ssl.py index b03c45fce6..acc0915bd6 100644 --- a/Lib/test/test_ssl.py +++ b/Lib/test/test_ssl.py @@ -376,14 +376,14 @@ else: self.close() return elif (self.server.starttls_server and - stripped == 'STARTTLS'): + stripped == b'STARTTLS'): if support.verbose and self.server.connectionchatty: sys.stdout.write(" server: read STARTTLS from client, sending OK...\n") self.write(b"OK\n") if not self.wrap_conn(): return elif (self.server.starttls_server and self.sslconn - and stripped == 'ENDTLS'): + and stripped == b'ENDTLS'): if support.verbose and self.server.connectionchatty: sys.stdout.write(" server: read ENDTLS from client, sending OK...\n") self.write(b"OK\n")