diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2010-03-04 19:21:53 (GMT) |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2010-03-04 19:21:53 (GMT) |
commit | 19c9b6042ed6e6ceaffd242841665c6f7a3ddf8d (patch) | |
tree | 270df7fc836ff4e8268fb59a384454eba2fbd294 /Lib | |
parent | 3f3330f3886166532558c3d4b0d10deb104dc1ee (diff) | |
download | cpython-19c9b6042ed6e6ceaffd242841665c6f7a3ddf8d.zip cpython-19c9b6042ed6e6ceaffd242841665c6f7a3ddf8d.tar.gz cpython-19c9b6042ed6e6ceaffd242841665c6f7a3ddf8d.tar.bz2 |
Try to fix buildbot breakage from r78384.
Thanks bitdancer and briancurtin for the help.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_csv.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_csv.py b/Lib/test/test_csv.py index 7eef4c0..5cc891d 100644 --- a/Lib/test/test_csv.py +++ b/Lib/test/test_csv.py @@ -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() |