Skip to content
Myr

Merge remote-tracking branch 'origin/develop' into develop

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

authored by Kenneth Reitz · committed by Kenneth Reitz · parents 2b202aa, cb64d31 · Browse files · 2 files+8 added−2 removed
This commit

State

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

Diff stats

2 files+8 added−2 removed

  • other:+8 added−2 removed

2 files+8 added−2 removed

modified:requests/models.py+2 added-2 removed
349 unmodified lines
350 path = p.path351 if not path:352 path = '/'353354 # if is_py3:355 path = quote(path.encode('utf-8'))354 if is_py3:355 path = quote(path.encode('utf-8'))356357 url.append(path)358359 query = p.query
445 unmodified lines
modified:test_requests.py+6 added
70 unmodified lines
7172 def test_invalid_url(self):73 self.assertRaises(ValueError, get, 'hiwpefhipowhefopw')747576 def test_path_is_not_double_encoded(self):77 request = requests.Request("http://0.0.0.0/get/~test")7879 assert request.path_url == "/get/%7Etest"8081 def test_HTTP_200_OK_GET(self):82 r = get(httpbin('/get'))83 self.assertEqual(r.status_code, 200)84
647 unmodified lines