]> granicus.if.org Git - python/commitdiff
Try to fix buildbot breakage from r78384.
authorDirkjan Ochtman <dirkjan@ochtman.nl>
Thu, 4 Mar 2010 19:21:53 +0000 (19:21 +0000)
committerDirkjan Ochtman <dirkjan@ochtman.nl>
Thu, 4 Mar 2010 19:21:53 +0000 (19:21 +0000)
Thanks bitdancer and briancurtin for the help.

Lib/test/test_csv.py

index 7eef4c090b971477368d2a3471aecc41c8c7d9fb..5cc891da1de6aae74225ca73b48855cbd2f73b60 100644 (file)
@@ -9,6 +9,7 @@ from StringIO import StringIO
 import tempfile
 import csv
 import gc
+import io
 from test import test_support
 
 class Test_Csv(unittest.TestCase):
@@ -595,7 +596,7 @@ class TestDictFields(unittest.TestCase):
     ### "short" means there are fewer elements in the row than fieldnames
     def test_write_simple_dict(self):
         fd, name = tempfile.mkstemp()
-        fileobj = os.fdopen(fd, "w+b")
+        fileobj = io.open(fd, 'w+b')
         try:
             writer = csv.DictWriter(fileobj, fieldnames = ["f1", "f2", "f3"])
             writer.writeheader()