Author: johan
Date: Sun Jan 20 15:49:52 2008
New Revision: 742
URL: http://svn.gnome.org/viewvc/pygobject?rev=742&view=rev
Log:
Reuse file descriptor for reading and writing. Avoid unnecessary flush()
Modified:
trunk/tests/test_gio.py
Modified: trunk/tests/test_gio.py
==============================================================================
--- trunk/tests/test_gio.py (original)
+++ trunk/tests/test_gio.py Sun Jan 20 15:49:52 2008
@@ -8,10 +8,9 @@
class TestInputStream(unittest.TestCase):
def setUp(self):
- f = open("inputstream.txt", "w")
- f.write("testing")
-
- self._f = open("inputstream.txt", "r")
+ self._f = open("inputstream.txt", "w+")
+ self._f.write("testing")
+ self._f.seek(0)
self.stream = gio.unix.InputStream(self._f.fileno(), False)
def tearDown(self):
@@ -57,7 +56,6 @@
def setUp(self):
self._f = open("outputstream.txt", "w")
self.stream = gio.unix.OutputStream(self._f.fileno(), False)
- self._f.flush()
def tearDown(self):
self._f.close()
_______________________________________________
SVN-commits-list mailing list (read only)
http://mail.gnome.org/mailman/listinfo/svn-commits-list
Want to limit the commits to a few modules? Go to above URL, log in to edit
your options and select the modules ('topics') you want.
Module maintainer? It is possible to set the reply-to to your development
mailing list. Email [EMAIL PROTECTED] if interested.