diff --git a/IPython/utils/tests/test_tempdir.py b/IPython/utils/tests/test_tempdir.py index 5935cc7..8e919e5 100644 --- a/IPython/utils/tests/test_tempdir.py +++ b/IPython/utils/tests/test_tempdir.py @@ -15,6 +15,6 @@ def test_named_file_in_temporary_directory(): name = file.name assert not file.closed assert os.path.exists(name) - file.write('test') + file.write(b'test') assert file.closed assert not os.path.exists(name)