Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4282aa3

Browse files
committed
Update batch tests for newer python versions.
Python 2.7.7 included a [fix](http://bugs.python.org/issue14983) to always add a newline to multipart MIME messages. This makes one of our batch tests fail; we could update to exactly require a newline, but there's no reason to be so strict -- we might as well work across several python versions, since the code in question is in python (not this library).
1 parent 5185224 commit 4282aa3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_http.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ def test_execute_request_body(self):
802802
parts = e.content.split(boundary)
803803
self.assertEqual(4, len(parts))
804804
self.assertEqual('', parts[0])
805-
self.assertEqual('--', parts[3])
805+
self.assertEqual('--', parts[3].rstrip())
806806
header = parts[1].splitlines()[1]
807807
self.assertEqual('Content-Type: application/http', header)
808808

0 commit comments

Comments
 (0)