summaryrefslogtreecommitdiff
path: root/tests/test_mainloop.py
diff options
context:
space:
mode:
authorMartin Pitt <martinpitt@gnome.org>2012-10-28 14:15:05 +0100
committerMartin Pitt <martinpitt@gnome.org>2012-10-28 14:15:05 +0100
commit70d78eee4a04dcaefea4615fe351e33fa717dffa (patch)
treea85f180b09c7dbc4101379c9fed17e44b0799321 /tests/test_mainloop.py
parent4b16427714b850e33c6020d8de1833bae19a3b87 (diff)
downloadpygobject-70d78eee4a04dcaefea4615fe351e33fa717dffa.tar.gz
Remove static child_add_watch() binding
Use the GLib API through GI instead, and provide override to keep backwards compatible API. Also allow using the actual GLib API, and deprecate the old static API of calling without a priority as first argument.
Diffstat (limited to 'tests/test_mainloop.py')
-rw-r--r--tests/test_mainloop.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_mainloop.py b/tests/test_mainloop.py
index 3c753420..44197b37 100644
--- a/tests/test_mainloop.py
+++ b/tests/test_mainloop.py
@@ -34,7 +34,7 @@ class TestMainLoop(unittest.TestCase):
raise Exception("deadbabe")
loop = GLib.MainLoop()
- GLib.child_watch_add(pid, child_died, loop)
+ GLib.child_watch_add(GLib.PRIORITY_DEFAULT, pid, child_died, loop)
os.close(pipe_r)
os.write(pipe_w, _bytes("Y"))