[Python-checkins] r78660 - python/trunk/Lib/test/test_csv.py
dirkjan.ochtman
python-checkins at python.org
Thu Mar 4 20:21:54 CET 2010
Author: dirkjan.ochtman
Date: Thu Mar 4 20:21:53 2010
New Revision: 78660
Log:
Try to fix buildbot breakage from r78384.
Thanks bitdancer and briancurtin for the help.
Modified:
python/trunk/Lib/test/test_csv.py
Modified: python/trunk/Lib/test/test_csv.py
==============================================================================
--- python/trunk/Lib/test/test_csv.py (original)
+++ python/trunk/Lib/test/test_csv.py Thu Mar 4 20:21:53 2010
@@ -9,6 +9,7 @@
import tempfile
import csv
import gc
+import io
from test import test_support
class Test_Csv(unittest.TestCase):
@@ -595,7 +596,7 @@
### "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()
More information about the Python-checkins
mailing list