summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGian Mario Tagliaretti <gianmt@gnome.org>2009-05-24 11:44:24 +0200
committerGian Mario Tagliaretti <gianmt@gnome.org>2009-05-24 11:44:24 +0200
commit59da8cd24ea390b6c983995833ec6b0e5d028b35 (patch)
tree045e523e532e7c3fc7c6aef0610cefee7af2b100 /tests
parent84ab6178ed0033f69932df5bc73c86bdff80c953 (diff)
downloadpygobject-59da8cd24ea390b6c983995833ec6b0e5d028b35.tar.gz
pygobject-59da8cd24ea390b6c983995833ec6b0e5d028b35.tar.xz
pygobject-59da8cd24ea390b6c983995833ec6b0e5d028b35.zip
Wrap gio.OutputStream.flush_async()
wrap gio.OutputStream.flush_async() and add a test.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_gio.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/test_gio.py b/tests/test_gio.py
index d36c213..cf82658 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):