diff options
author | Martin Pitt <martinpitt@gnome.org> | 2012-10-19 09:55:05 +0200 |
---|---|---|
committer | Martin Pitt <martinpitt@gnome.org> | 2012-10-24 07:12:54 +0200 |
commit | 191cf45af44850fc29f2392ae2f0042aed6d13a9 (patch) | |
tree | bd1a43b254c6761f5e538aabf0d77bf8a5e306ca /tests/test_source.py | |
parent | 326218a20681c1f2234a6eea1ed800382be57626 (diff) | |
download | pygobject-191cf45af44850fc29f2392ae2f0042aed6d13a9.tar.gz |
Remove static MainLoop, MainContext, and some GSource bindings
glib's MainLoop and MainContext are fully introspectable these days, so remove
our static bindings. This reduces our code, as well enables GLib API which
hasn't been available through the static bindings before.
This also requires dropping our custom static types for GLib Source, Timeout,
and Idle. The latter two work fine with introspection and just need tiny
overrides for a backwards compatible API. g_source_new() is not introspectable,
though, so we need to keep our static wrappers for that. Move them from
gi/_glib/pygsource.c to gi/pygi-source.c, so that it can use the GI API.
Note that gi/_glib/pygsource.[hc] is still required for the static PollFD type
which is used by the static IOChannel binding. Once the latter goes away,
PollFD can be dropped as well.
https://bugzilla.gnome.org/show_bug.cgi?id=686443
Diffstat (limited to 'tests/test_source.py')
-rw-r--r-- | tests/test_source.py | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/test_source.py b/tests/test_source.py index 98bb0ce6..d77060f3 100644 --- a/tests/test_source.py +++ b/tests/test_source.py @@ -163,9 +163,6 @@ class TestSource(unittest.TestCase): self.assertGreater(time, 1300000000.0) self.assertLess(time, 2000000000.0) - # currently broken with Python 3, - # https://bugzilla.gnome.org/show_bug.cgi?id=686443 - @unittest.expectedFailure def testAddRemovePoll(self): # FIXME: very shallow test, only verifies the API signature pollfd = GLib.PollFD(99, GLib.IO_IN | GLib.IO_HUP) |