From f88206f2ecfabf3f147e6a3424eb3a623228a4e5 2014-10-05 21:37:16 From: Manuel Riel Date: 2014-10-05 21:37:16 Subject: [PATCH] mark binary properly as binary for python 3 --- diff --git a/IPython/html/tests/test_files.py b/IPython/html/tests/test_files.py index 5c4f0d1..7890fb8 100644 --- a/IPython/html/tests/test_files.py +++ b/IPython/html/tests/test_files.py @@ -76,7 +76,7 @@ class FilesTest(NotebookTestBase): write(nb, f, format='ipynb') with io.open(pjoin(nbdir, 'test.bin'), 'wb') as f: - f.write("\x5F\x9D\x3E") + f.write(b"\x5F\x9D\x3E") f.close() with io.open(pjoin(nbdir, 'test.txt'), 'w') as f: