Andother bytes/str comparison caught by Jeremy's change.
This commit is contained in:
parent
9ff05b269f
commit
f7f3deb702
|
@ -82,7 +82,7 @@ class PtyTest(unittest.TestCase):
|
||||||
fcntl.fcntl(master_fd, fcntl.F_SETFL, orig_flags | os.O_NONBLOCK)
|
fcntl.fcntl(master_fd, fcntl.F_SETFL, orig_flags | os.O_NONBLOCK)
|
||||||
try:
|
try:
|
||||||
s1 = os.read(master_fd, 1024)
|
s1 = os.read(master_fd, 1024)
|
||||||
self.assertEquals('', s1)
|
self.assertEquals(b'', s1)
|
||||||
except OSError as e:
|
except OSError as e:
|
||||||
if e.errno != errno.EAGAIN:
|
if e.errno != errno.EAGAIN:
|
||||||
raise
|
raise
|
||||||
|
|
Loading…
Reference in New Issue