mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Fixing test to ensure it passes with python 3.
This commit is contained in:
+1
-1
@@ -262,7 +262,7 @@ class RequestsTestCase(unittest.TestCase):
|
||||
'file2': ('test_requests', open(__file__, 'rb'),
|
||||
'text/py-content-type')})
|
||||
self.assertEqual(r.status_code, 200)
|
||||
self.assertTrue("text/py-content-type" in r.request.body)
|
||||
self.assertTrue(b"text/py-content-type" in r.request.body)
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
||||
Reference in New Issue
Block a user