Fix Travis py34 failure

by not relying on core.pyc file in test
This commit is contained in:
Marc Abramowitz
2014-12-22 16:35:11 -08:00
parent 3c85fbf3eb
commit 6ad0781991
+3 -2
View File
@@ -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):