From 57ce330cf3c3eb28bf49a72df76e847b7174a002 2014-10-07 23:29:53 From: Manuel Riel Date: 2014-10-07 23:29:53 Subject: [PATCH] simplify bin-file test --- diff --git a/IPython/html/tests/test_files.py b/IPython/html/tests/test_files.py index e3dc1ec..82c630d 100644 --- a/IPython/html/tests/test_files.py +++ b/IPython/html/tests/test_files.py @@ -91,7 +91,8 @@ 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.assertTrue(r.content[0] == 255 or r.content[0] == b'\xff') + # self.assertTrue(r.content[0] == 255 or r.content[0] == b'\xff') + self.assertEqual(r.content[:1], b'\xff') self.assertEqual(len(r.content), 6) r = requests.get(url_path_join(base, 'files', 'test.txt'))