Skip to content
Myr

Fix python 2.6 unittest compatability issue.

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Johnny Goodnow · committed by Johnny Goodnow · parent 44b1e7e · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:test_requests.py+1 added-1 removed
58 unmodified lines
596061 def test_no_content_length(self):62 req = requests.Request('GET', httpbin('get')).prepare()63 self.assertNotIn('Content-Length', req.headers)63 self.assertTrue('Content-Length' not in req.headers)646566 def test_path_is_not_double_encoded(self):67 request = requests.Request('GET', "http://0.0.0.0/get/test case").prepare()
222 unmodified lines