From 5c15fffaca3573d2a03cc9aeb80af212601a2405 Mon Sep 17 00:00:00 2001 From: Brian Bamsch Date: Wed, 28 Sep 2016 20:45:26 -0700 Subject: [PATCH] Rework Bytestring Host Test to use PyTest Httpbin --- tests/test_requests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_requests.py b/tests/test_requests.py index b6e8b99e..a6eeb180 100755 --- a/tests/test_requests.py +++ b/tests/test_requests.py @@ -858,11 +858,11 @@ class TestRequests: prep = s.prepare_request(req) assert prep.url == "https://httpbin.org/" - def test_request_with_bytestring_host(self): + def test_request_with_bytestring_host(self, httpbin): s = requests.Session() resp = s.request( 'GET', - 'http://httpbin.org/cookies/set?cookie=value', + httpbin('cookies/set?cookie=value'), allow_redirects=False, headers={'Host': b'httpbin.org'} )