From 74ffca1fdd1a30eff58cadf766d0f4f5a504e3db Mon Sep 17 00:00:00 2001 From: Johan Dahlin Date: Fri, 11 Apr 2008 15:37:29 +0000 Subject: Move around the order of the callback argument to async methods, so it 2008-04-11 Johan Dahlin * gio/gfile.override: * gio/ginputstream.override: * gio/goutputstream.override: * tests/test_gio.py: Move around the order of the callback argument to async methods, so it comes before priority and cancellable, which can have default values. svn path=/trunk/; revision=773 --- tests/test_gio.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'tests') diff --git a/tests/test_gio.py b/tests/test_gio.py index e06cbb0..95d5206 100644 --- a/tests/test_gio.py +++ b/tests/test_gio.py @@ -27,7 +27,7 @@ class TestFile(unittest.TestCase): finally: loop.quit() - self.file.read_async(0, None, callback) + self.file.read_async(callback) loop = gobject.MainLoop() loop.run() @@ -90,7 +90,7 @@ class TestInputStream(unittest.TestCase): finally: loop.quit() - self.stream.read_async(7, 0, None, callback) + self.stream.read_async(7, callback) loop = gobject.MainLoop() loop.run() @@ -106,8 +106,8 @@ class TestInputStream(unittest.TestCase): finally: loop.quit() - self.stream.read_async(10240, 0, None, callback) - self.stream.read_async(10240, 0, None, callback) + self.stream.read_async(10240, callback) + self.stream.read_async(10240, callback) loop = gobject.MainLoop() loop.run() @@ -122,7 +122,7 @@ class TestInputStream(unittest.TestCase): finally: loop.quit() - self.stream.close_async(0, None, callback) + self.stream.close_async(callback) loop = gobject.MainLoop() loop.run() @@ -153,7 +153,7 @@ class TestOutputStream(unittest.TestCase): finally: loop.quit() - self.stream.write_async("testing", 0, None, callback) + self.stream.write_async("testing", callback) loop = gobject.MainLoop() loop.run() @@ -167,7 +167,7 @@ class TestOutputStream(unittest.TestCase): loop.quit() self.stream.close() - self.stream.write_async("testing", 0, None, callback) + self.stream.write_async("testing", callback) loop = gobject.MainLoop() loop.run() @@ -181,7 +181,7 @@ class TestOutputStream(unittest.TestCase): finally: loop.quit() - self.stream.close_async(0, None, callback) + self.stream.close_async(callback) loop = gobject.MainLoop() loop.run() -- cgit