diff options
| author | Gian Mario Tagliaretti <gianmt@gnome.org> | 2009-03-22 00:12:35 +0000 |
|---|---|---|
| committer | Gian Mario Tagliaretti <gianmt@src.gnome.org> | 2009-03-22 00:12:35 +0000 |
| commit | 29b06919c7abdc6b896a07ef11829bdeba1a4935 (patch) | |
| tree | a7b38490b0b2f7bf8a592855a35efc076b58e1c0 /tests | |
| parent | 360f533eb6e244dae4cc748618bd77348f206f46 (diff) | |
| download | pygobject-29b06919c7abdc6b896a07ef11829bdeba1a4935.tar.gz pygobject-29b06919c7abdc6b896a07ef11829bdeba1a4935.tar.xz pygobject-29b06919c7abdc6b896a07ef11829bdeba1a4935.zip | |
gio/gfileenumerator.override (_wrap_g_file_enumerator_close_async) wrap
2009-03-22 Gian Mario Tagliaretti <gianmt@gnome.org>
* gio/gfileenumerator.override (_wrap_g_file_enumerator_close_async)
wrap new method.
* tests/test_gio.py (TestGFileEnumerator.testCloseFilesAsync):
Test the above.
svn path=/trunk/; revision=1027
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_gio.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test_gio.py b/tests/test_gio.py index ba05f83..a9b273b 100644 --- a/tests/test_gio.py +++ b/tests/test_gio.py @@ -500,6 +500,21 @@ class TestGFileEnumerator(unittest.TestCase): loop = glib.MainLoop() loop.run() + def testCloseFilesAsync(self): + def callback(enumerator, result): + try: + enumerator.close_finish(result) + finally: + loop.quit() + + enumerator = self.file.enumerate_children( + "standard::*", gio.FILE_QUERY_INFO_NOFOLLOW_SYMLINKS) + + enumerator.close_async(callback) + + loop = glib.MainLoop() + loop.run() + class TestInputStream(unittest.TestCase): def setUp(self): |
