summaryrefslogtreecommitdiff
path: root/tests/test_gcancellable.py
blob: f911572508342053ad5e2a0406c8ce551d8936ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# -*- Mode: Python -*-

import unittest

import glib
import gio


class TestResolver(unittest.TestCase):
    def setUp(self):
        self.cancellable = gio.Cancellable()
    
    def test_make_poll_fd(self):
        poll = self.cancellable.make_pollfd()
        self.failUnless(isinstance(poll, glib.PollFD))