diff options
author | Gian Mario Tagliaretti <gianmt@gnome.org> | 2009-05-24 11:44:24 +0200 |
---|---|---|
committer | Gian Mario Tagliaretti <gianmt@gnome.org> | 2009-05-24 11:44:24 +0200 |
commit | 59da8cd24ea390b6c983995833ec6b0e5d028b35 (patch) | |
tree | 045e523e532e7c3fc7c6aef0610cefee7af2b100 /tests | |
parent | 84ab6178ed0033f69932df5bc73c86bdff80c953 (diff) | |
download | pygobject-59da8cd24ea390b6c983995833ec6b0e5d028b35.tar.gz |
Wrap gio.OutputStream.flush_async()
wrap gio.OutputStream.flush_async() and add a test.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_gio.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_gio.py b/tests/test_gio.py index d36c2130..cf82658d 100644 --- a/tests/test_gio.py +++ b/tests/test_gio.py @@ -804,7 +804,18 @@ class TestOutputStream(unittest.TestCase): loop = glib.MainLoop() loop.run() + + def testFlushAsync(self): + def callback(stream, result): + try: + self.failUnless(stream.flush_finish(result)) + finally: + loop.quit() + + self.stream.flush_async(callback) + loop = glib.MainLoop() + loop.run() class TestMemoryOutputStream(unittest.TestCase): def setUp(self): |