Skip to content
Myr

Merge pull request #3236 from eriol/xfail-test

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

Use xfail marker for a test expected to fail without Internet connection

authored by Kenneth Reitz · committed by GitHub · parents 400d27f, 5e86103 · Browse files · 1 file+1 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+1 added−0 removed

  • tests:+1 added−0 removed

1 file+1 added−0 removed

modified:tests/test_requests.py+1 added
1140 unmodified lines
1141 req = requests.Request('GET', test_url)1142 preq = req.prepare()1143 assert test_url == preq.url11441145 @pytest.mark.xfail(raises=ConnectionError)1146 def test_auth_is_stripped_on_redirect_off_host(self, httpbin):1147 r = requests.get(1148 httpbin('redirect-to'),1149 params={'url': 'http://www.google.co.uk'},
548 unmodified lines