From 6ad0781991cd30e837ea995c1d2eee5505f80220 Mon Sep 17 00:00:00 2001 From: Marc Abramowitz Date: Mon, 22 Dec 2014 16:35:11 -0800 Subject: [PATCH] Fix Travis py34 failure by not relying on core.pyc file in test --- test_httpbin.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/test_httpbin.py b/test_httpbin.py index 093ce71..cf53b0b 100755 --- a/test_httpbin.py +++ b/test_httpbin.py @@ -55,8 +55,9 @@ class HttpbinTestCase(unittest.TestCase): self.assertEqual(response.status_code, 200) def test_post_body_binary(self): - with open('httpbin/core.pyc', 'rb') as f: - response = self.app.post('/post', data={"file": f.read()}) + response = self.app.post( + '/post', + data={"file": b'\x01\x02\x03\x81\x82\x83'}) self.assertEqual(response.status_code, 200) def test_post_body_unicode(self):