From b94d79214498b07abc22e676897c8314cc386c7c Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Sat, 26 Jul 2008 08:37:59 +0000 Subject: Move over glib constants to gobject 2008-07-26 Johan Dahlin * 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 --- tests/test_subprocess.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'tests/test_subprocess.py') 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) -- cgit