summaryrefslogtreecommitdiff
path: root/tests/test_mainloop.py
diff options
context:
space:
mode:
authorChristoph Reiter <creiter@src.gnome.org>2017-04-02 14:13:08 +0200
committerChristoph Reiter <creiter@src.gnome.org>2017-04-02 14:14:49 +0200
commit52693463749f045355a7ddeace033d369fe2e786 (patch)
tree277c5111c0241d81ffa3b7c864afd49a4da20df1 /tests/test_mainloop.py
parent1039e9a512d1df35e9c4656b0b41c1e4a25aafad (diff)
downloadpygobject-52693463749f045355a7ddeace033d369fe2e786.tar.gz
tests: remove python 2.5/3.2 compat code
2.7/3.3 support the u/b prefixes and both have callable()
Diffstat (limited to 'tests/test_mainloop.py')
-rw-r--r--tests/test_mainloop.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/tests/test_mainloop.py b/tests/test_mainloop.py
index ae3919ee..fda6787a 100644
--- a/tests/test_mainloop.py
+++ b/tests/test_mainloop.py
@@ -8,8 +8,6 @@ import unittest
from gi.repository import GLib
-from compathelper import _bytes
-
class TestMainLoop(unittest.TestCase):
@@ -32,7 +30,7 @@ class TestMainLoop(unittest.TestCase):
GLib.child_watch_add(GLib.PRIORITY_DEFAULT, pid, child_died, loop)
os.close(pipe_r)
- os.write(pipe_w, _bytes("Y"))
+ os.write(pipe_w, b"Y")
os.close(pipe_w)
def excepthook(type, value, traceback):