mirror of
https://github.com/kennethreitz/httpbin.git
synced 2026-06-05 06:46:16 +00:00
Fix Travis py34 failure
by not relying on core.pyc file in test
This commit is contained in:
+3
-2
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user