Skip to content
Myr

Merge pull request #1483 from dpursehouse/httpbin-url-without-trailing-slash

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

Test cases fail when `HTTPBIN_URL` does not have trailing slash

authored by Kenneth Reitz · committed by Kenneth Reitz · parents 66de6b5, 29db7b7 · Browse files · 1 file+2 added−0 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+2 added−0 removed

  • other:+2 added−0 removed

1 file+2 added−0 removed

modified:test_requests.py+2 added
21 unmodified lines
22except ImportError:23 import io as StringIO2425HTTPBIN = os.environ.get('HTTPBIN_URL', 'http://httpbin.org/')26# Issue #1483: Make sure the URL always has a trailing slash27HTTPBIN = HTTPBIN.rstrip('/') + '/'282930def httpbin(*suffix):31 """Returns url for HTTPBIN resource."""
752 unmodified lines