summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJohan Dahlin <jdahlin@async.com.br>2008-04-11 15:37:29 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-04-11 15:37:29 +0000
commit74ffca1fdd1a30eff58cadf766d0f4f5a504e3db (patch)
tree776d409f4e428fa64e29419c559d0893aad4f279 /tests
parent5f743cddfc05aecf25b9713ae84259d2583b499e (diff)
downloadpygobject-74ffca1fdd1a30eff58cadf766d0f4f5a504e3db.tar.gz
pygobject-74ffca1fdd1a30eff58cadf766d0f4f5a504e3db.tar.xz
pygobject-74ffca1fdd1a30eff58cadf766d0f4f5a504e3db.zip
Move around the order of the callback argument to async methods, so it
2008-04-11 Johan Dahlin <jdahlin@async.com.br> * 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
Diffstat (limited to 'tests')
-rw-r--r--tests/test_gio.py16
1 files changed, 8 insertions, 8 deletions
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()