summaryrefslogtreecommitdiff
path: root/tests/test_source.py
diff options
context:
space:
mode:
authorMartin Pitt <martinpitt@gnome.org>2012-10-24 13:59:31 +0200
committerMartin Pitt <martinpitt@gnome.org>2012-10-24 13:59:31 +0200
commit0137a7af7bf69421e0c8e94120a1f8cff01fbeea (patch)
tree3d9533e992bdc0f32751387355e4c32f90c2941b /tests/test_source.py
parent0e1a6ccee45ae2239da1c44de1866596343165ba (diff)
downloadpygobject-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.py2
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)