mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Merge pull request #3236 from eriol/xfail-test
Use xfail marker for a test expected to fail without Internet connection
This commit is contained in:
@@ -1142,6 +1142,7 @@ class TestRequests:
|
||||
preq = req.prepare()
|
||||
assert test_url == preq.url
|
||||
|
||||
@pytest.mark.xfail(raises=ConnectionError)
|
||||
def test_auth_is_stripped_on_redirect_off_host(self, httpbin):
|
||||
r = requests.get(
|
||||
httpbin('redirect-to'),
|
||||
|
||||
Reference in New Issue
Block a user