diff options
author | Martin Pitt <martinpitt@gnome.org> | 2012-10-24 13:59:31 +0200 |
---|---|---|
committer | Martin Pitt <martinpitt@gnome.org> | 2012-10-24 13:59:31 +0200 |
commit | 0137a7af7bf69421e0c8e94120a1f8cff01fbeea (patch) | |
tree | 3d9533e992bdc0f32751387355e4c32f90c2941b /tests/test_source.py | |
parent | 0e1a6ccee45ae2239da1c44de1866596343165ba (diff) | |
download | pygobject-0137a7af7bf69421e0c8e94120a1f8cff01fbeea.tar.gz |
Drop static IO_* constants
Use the introspected constants instead, which are identical. Add backwards
compatible aliases.
These constants are covered by tests/test_iochannel.py.
Diffstat (limited to 'tests/test_source.py')
-rw-r--r-- | tests/test_source.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_source.py b/tests/test_source.py index 38d03ab9..5f0b16c0 100644 --- a/tests/test_source.py +++ b/tests/test_source.py @@ -171,7 +171,7 @@ class TestSource(unittest.TestCase): def test_add_remove_poll(self): # FIXME: very shallow test, only verifies the API signature - pollfd = GLib.PollFD(99, GLib.IO_IN | GLib.IO_HUP) + pollfd = GLib.PollFD(99, GLib.IOCondition.IN | GLib.IOCondition.HUP) self.assertEqual(pollfd.fd, 99) source = GLib.Source() source.add_poll(pollfd) |