]> granicus.if.org Git - python/commitdiff
Andother bytes/str comparison caught by Jeremy's change.
authorGuido van Rossum <guido@python.org>
Wed, 29 Aug 2007 20:24:57 +0000 (20:24 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 29 Aug 2007 20:24:57 +0000 (20:24 +0000)
Lib/test/test_pty.py

index b153ae7294399208db0bd228dc9257564573ae75..bfabc2aa5f6ae917d9276dc66acb39eece94b706 100644 (file)
@@ -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