From cecafa7e4809c8c2bfa77446beea8beb3a51d8dc Mon Sep 17 00:00:00 2001 From: John Ehresman Date: Fri, 16 Apr 2010 11:55:50 -0400 Subject: Test fixes for bytes --- tests/test_mainloop.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_mainloop.py') diff --git a/tests/test_mainloop.py b/tests/test_mainloop.py index afb550a..a82063f 100644 --- a/tests/test_mainloop.py +++ b/tests/test_mainloop.py @@ -5,7 +5,7 @@ import sys import select import unittest -from common import glib +from common import glib, _bytes class TestMainLoop(unittest.TestCase): def testExceptionHandling(self): @@ -26,7 +26,7 @@ class TestMainLoop(unittest.TestCase): glib.child_watch_add(pid, child_died, loop) os.close(pipe_r) - os.write(pipe_w, "Y") + os.write(pipe_w, _bytes("Y")) os.close(pipe_w) def excepthook(type, value, traceback): -- cgit