From: Guido van Rossum Date: Wed, 29 Aug 2007 20:24:57 +0000 (+0000) Subject: Andother bytes/str comparison caught by Jeremy's change. X-Git-Tag: v3.0a1~123 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f7f3deb7025fadfae5f074bc0f918852e39ad2d9;p=thirdparty%2FPython%2Fcpython.git Andother bytes/str comparison caught by Jeremy's change. --- diff --git a/Lib/test/test_pty.py b/Lib/test/test_pty.py index b153ae729439..bfabc2aa5f6a 100644 --- a/Lib/test/test_pty.py +++ b/Lib/test/test_pty.py @@ -82,7 +82,7 @@ class PtyTest(unittest.TestCase): fcntl.fcntl(master_fd, fcntl.F_SETFL, orig_flags | os.O_NONBLOCK) try: s1 = os.read(master_fd, 1024) - self.assertEquals('', s1) + self.assertEquals(b'', s1) except OSError as e: if e.errno != errno.EAGAIN: raise