diff --git a/tests/test_requests.py b/tests/test_requests.py index 427675d5..f5f233f7 100755 --- a/tests/test_requests.py +++ b/tests/test_requests.py @@ -1523,7 +1523,7 @@ def test_json_encodes_as_bytes(): p.prepare( method='GET', url='https://www.example.com/', - json='body' + json=body ) assert isinstance(p.body, bytes)