tests: poller_test 3.x fix.

This commit is contained in:
David Wilson 2018-11-04 19:48:42 +00:00
parent 6e1f9e2596
commit 5482b4d528
1 changed files with 1 additions and 1 deletions

View File

@ -43,7 +43,7 @@ class SockMixin(object):
"""Make `fd` unwriteable."""
while True:
try:
os.write(fd, 'x'*4096)
os.write(fd, mitogen.core.b('x')*4096)
except OSError:
e = sys.exc_info()[1]
if e.args[0] == errno.EAGAIN: