Skip to content
Myr

Stop using HTTP and HTTPS schemes in one test.

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

authored by Cory Benfield · committed by Cory Benfield · parent a56db9e · Browse files · 1 file+1 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

1 file+1 added−2 removed

  • other:+1 added−2 removed

1 file+1 added−2 removed

modified:test_requests.py+1 added-2 removed
159 unmodified lines
160 def test_mixed_case_scheme_acceptable(self):161 s = requests.Session()162 s.proxies = getproxies()163 parts = urlparse(httpbin('get'))164 schemes = ['http://', 'HTTP://', 'hTTp://', 'HttP://',165 'https://', 'HTTPS://', 'hTTps://', 'HttPs://']164 schemes = ['http://', 'HTTP://', 'hTTp://', 'HttP://']165 for scheme in schemes:166 url = scheme + parts.netloc + parts.path167 r = requests.Request('GET', url)168 r = s.send(r.prepare())
1574 unmodified lines