diff options
author | Johan Dahlin <johan@gnome.org> | 2008-07-26 08:37:59 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2008-07-26 08:37:59 +0000 |
commit | b94d79214498b07abc22e676897c8314cc386c7c (patch) | |
tree | b73c3e64c8363d9a89c98212a436a7445d57c217 /tests/test_subprocess.py | |
parent | 444fcf054cfa845c06cc23e2a67303ed0aa1f402 (diff) | |
download | pygobject-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_subprocess.py')
-rw-r--r-- | tests/test_subprocess.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/test_subprocess.py b/tests/test_subprocess.py index b1c7dde..8495010 100644 --- a/tests/test_subprocess.py +++ b/tests/test_subprocess.py @@ -4,7 +4,7 @@ import gc import unittest import sys -from common import gobject +from common import glib, gobject class TestProcess(unittest.TestCase): @@ -14,12 +14,12 @@ class TestProcess(unittest.TestCase): def testChildWatch(self): self.data = None - self.loop = gobject.MainLoop() + self.loop = glib.MainLoop() argv = [sys.executable, '-c', 'import sys'] - pid, stdin, stdout, stderr = gobject.spawn_async( - argv, flags=gobject.SPAWN_DO_NOT_REAP_CHILD) + pid, stdin, stdout, stderr = glib.spawn_async( + argv, flags=glib.SPAWN_DO_NOT_REAP_CHILD) pid.close() - gobject.child_watch_add(pid, self._child_watch_cb, 12345) + glib.child_watch_add(pid, self._child_watch_cb, 12345) self.loop.run() self.assertEqual(self.data, 12345) |