8000 Explicitly set mode of temporary file passed to CSV writer to non-bin… · matplotlib/matplotlib@67427c3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 67427c3

Browse files
hodgestarstefanv
authored andcommitted
Explicitly set mode of temporary file passed to CSV writer to non-binary (since CSV writer writes strings).
1 parent c40a624 commit 67427c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/tests/test_mlab.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def test_recarray_csv_roundtrip():
1717
expected['x'][0] = 1
1818
expected['y'][1] = 2
1919
expected['t'][2] = 3
20-
fd = tempfile.TemporaryFile(suffix='csv')
20+
fd = tempfile.TemporaryFile(suffix='csv', mode="w+")
2121
mlab.rec2csv(expected,fd)
2222
fd.seek(0)
2323
actual = mlab.csv2rec(fd)

0 commit comments

Comments
 (0)
0