From 5482b4d528a7e79e0291b27f5db40e5f1954d060 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sun, 4 Nov 2018 19:48:42 +0000 Subject: [PATCH] tests: poller_test 3.x fix. --- tests/poller_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/poller_test.py b/tests/poller_test.py index a6190821..c214f367 100644 --- a/tests/poller_test.py +++ b/tests/poller_test.py @@ -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: