Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Made test introduced in 566e284 pass on Python 3.

  • Loading branch information...
commit 4bed64c4171194385f5995e657885a3ef35ea49b 1 parent 06603d1
@aaugustin aaugustin authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 tests/requests/tests.py
View
14 tests/requests/tests.py
@@ -532,13 +532,13 @@ def test_body_after_POST_multipart_related(self):
# There are cases in which the multipart data is related instead of
# being a binary upload, in which case it should still be accessible
# via body.
- payload_data = "\r\n".join([
- '--boundary',
- 'Content-ID: id; name="name"',
- '',
- 'value',
- '--boundary--'
- ''])
+ payload_data = b"\r\n".join([
+ b'--boundary',
+ b'Content-ID: id; name="name"',
+ b'',
+ b'value',
+ b'--boundary--'
+ b''])
payload = FakePayload(payload_data)
request = WSGIRequest({'REQUEST_METHOD': 'POST',
'CONTENT_TYPE': 'multipart/related; boundary=boundary',
Please sign in to comment.
Something went wrong with that request. Please try again.