summaryrefslogtreecommitdiffstats
path: root/tests/test_mainloop.py
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2008-07-26 08:37:59 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-07-26 08:37:59 +0000
commitb94d79214498b07abc22e676897c8314cc386c7c (patch)
treeb73c3e64c8363d9a89c98212a436a7445d57c217 /tests/test_mainloop.py
parent444fcf054cfa845c06cc23e2a67303ed0aa1f402 (diff)
downloadpygobject-b94d79214498b07abc22e676897c8314cc386c7c.tar.gz
pygobject-b94d79214498b07abc22e676897c8314cc386c7c.tar.xz
pygobject-b94d79214498b07abc22e676897c8314cc386c7c.zip
Move over glib constants to gobject
2008-07-26 Johan Dahlin <johan@gnome.org> * glib/glibmodule.c (pyglib_register_constants), (init_glib): * gobject/__init__.py: * gobject/gobjectmodule.c (init_gobject): Move over glib constants to gobject * tests/test_gio.py: * tests/test_mainloop.py: * tests/test_source.py: * tests/test_subprocess.py: * tests/test_thread.py: Update tests to refer to glib when appropriate svn path=/trunk/; revision=858
Diffstat (limited to 'tests/test_mainloop.py')
-rw-r--r--tests/test_mainloop.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_mainloop.py b/tests/test_mainloop.py
index 8294642..95e5f78 100644
--- a/tests/test_mainloop.py
+++ b/tests/test_mainloop.py
@@ -6,7 +6,7 @@ import sys
import select
import unittest
-from common import gobject
+from common import glib
class TestMainLoop(unittest.TestCase):
def testExceptionHandling(self):
@@ -23,8 +23,8 @@ class TestMainLoop(unittest.TestCase):
loop.quit()
raise Exception("deadbabe")
- loop = gobject.MainLoop()
- gobject.child_watch_add(pid, child_died, loop)
+ loop = glib.MainLoop()
+ glib.child_watch_add(pid, child_died, loop)
os.close(pipe_r)
os.write(pipe_w, "Y")