[Lxml-checkins] r33841 - lxml/trunk/src/lxml/tests

scoder at codespeak.net scoder at codespeak.net
Sat Oct 28 23:55:39 CEST 2006


Author: scoder
Date: Sat Oct 28 23:55:34 2006
New Revision: 33841

Modified:
   lxml/trunk/src/lxml/tests/test_io.py
Log:
reverted part of I/O test case to original implementation

Modified: lxml/trunk/src/lxml/tests/test_io.py
==============================================================================
--- lxml/trunk/src/lxml/tests/test_io.py	(original)
+++ lxml/trunk/src/lxml/tests/test_io.py	Sat Oct 28 23:55:34 2006
@@ -55,7 +55,7 @@
         # parse from filename
         
         handle, filename = tempfile.mkstemp(suffix=".xml")
-        os.write(handle, self.root_str)
+        open(filename, 'wb').write(self.root_str)
         try:
             tree = self.etree.ElementTree()
             root = tree.parse(filename)
@@ -66,7 +66,7 @@
 
     def test_class_parse_filename_remove_previous(self):
         handle, filename = tempfile.mkstemp(suffix=".xml")
-        os.write(handle, self.root_str)
+        open(filename, 'wb').write(self.root_str)
         try:
             tree = self.etree.ElementTree()
             root = tree.parse(filename)


More information about the lxml-checkins mailing list