Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Made test introduced in 566e284 pass on Python 3.

  • Loading branch information...
commit 4bed64c4171194385f5995e657885a3ef35ea49b 1 parent 06603d1
Aymeric Augustin authored May 18, 2013

Showing 1 changed file with 7 additions and 7 deletions. Show diff stats Hide diff stats

  1. 14  tests/requests/tests.py
14  tests/requests/tests.py
@@ -532,13 +532,13 @@ def test_body_after_POST_multipart_related(self):
532 532
         # There are cases in which the multipart data is related instead of
533 533
         # being a binary upload, in which case it should still be accessible
534 534
         # via body.
535  
-        payload_data = "\r\n".join([
536  
-                '--boundary',
537  
-                'Content-ID: id; name="name"',
538  
-                '',
539  
-                'value',
540  
-                '--boundary--'
541  
-                ''])
  535
+        payload_data = b"\r\n".join([
  536
+                b'--boundary',
  537
+                b'Content-ID: id; name="name"',
  538
+                b'',
  539
+                b'value',
  540
+                b'--boundary--'
  541
+                b''])
542 542
         payload = FakePayload(payload_data)
543 543
         request = WSGIRequest({'REQUEST_METHOD': 'POST',
544 544
                                'CONTENT_TYPE': 'multipart/related; boundary=boundary',

0 notes on commit 4bed64c

Please sign in to comment.
Something went wrong with that request. Please try again.