diff options
Diffstat (limited to 'tests/test_gio.py')
| -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): |
