##// END OF EJS Templates
mark binary properly as binary for python 3
Manuel Riel -
Show More
@@ -76,7 +76,7 b' class FilesTest(NotebookTestBase):'
76 write(nb, f, format='ipynb')
76 write(nb, f, format='ipynb')
77
77
78 with io.open(pjoin(nbdir, 'test.bin'), 'wb') as f:
78 with io.open(pjoin(nbdir, 'test.bin'), 'wb') as f:
79 f.write("\x5F\x9D\x3E")
79 f.write(b"\x5F\x9D\x3E")
80 f.close()
80 f.close()
81
81
82 with io.open(pjoin(nbdir, 'test.txt'), 'w') as f:
82 with io.open(pjoin(nbdir, 'test.txt'), 'w') as f:
General Comments 0
You need to be logged in to leave comments. Login now