Kaydet (Commit) 19c9b604 authored tarafından Dirkjan Ochtman's avatar Dirkjan Ochtman

Try to fix buildbot breakage from r78384.

Thanks bitdancer and briancurtin for the help.
üst 3f3330f3
......@@ -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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment