From 593ab0d2d109c445b8a16b8755520b14218f901e 2014-10-06 12:48:36 From: Manuel Riel Date: 2014-10-06 12:48:36 Subject: [PATCH] 2 checks for python2 and python3) --- diff --git a/IPython/html/tests/test_files.py b/IPython/html/tests/test_files.py index 26b06c0..b2f8059 100644 --- a/IPython/html/tests/test_files.py +++ b/IPython/html/tests/test_files.py @@ -92,7 +92,7 @@ class FilesTest(NotebookTestBase): r = requests.get(url_path_join(base, 'files', 'test.bin')) self.assertEqual(r.status_code, 200) self.assertEqual(r.headers['content-type'], 'application/octet-stream') - self.assertEqual(r.content[0], 255) + self.assertTrue(r.content[0] == 255 or r.content[0] == b'\xff') self.assertEqual(len(r.content), 6) r = requests.get(url_path_join(base, 'files', 'test.txt'))