summaryrefslogtreecommitdiffstats
path: root/tests/test_gio.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_gio.py')
-rw-r--r--tests/test_gio.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tests/test_gio.py b/tests/test_gio.py
index 2b12d5b..ce1095e 100644
--- a/tests/test_gio.py
+++ b/tests/test_gio.py
@@ -66,9 +66,8 @@ class TestInputStream(unittest.TestCase):
def testReadAsync(self):
def callback(stream, result):
try:
- read = stream.read_finish(result)
- self.assertEquals(read, len("testing"))
- self.assertEquals(result.get_buffer(), "testing")
+ data = stream.read_finish(result)
+ self.assertEquals(data, "testing")
stream.close()
finally:
loop.quit()
@@ -82,7 +81,6 @@ class TestInputStream(unittest.TestCase):
self.count = 0
def callback(stream, result):
try:
- #self.assertEquals(result.get_buffer(), None)
self.count += 1
if self.count == 1:
return