Andother bytes/str comparison caught by Jeremy's change.
diff --git a/Lib/test/test_pty.py b/Lib/test/test_pty.py
index b153ae7..bfabc2a 100644
--- a/Lib/test/test_pty.py
+++ b/Lib/test/test_pty.py
@@ -82,7 +82,7 @@
         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