diff --git a/test_requests.py b/test_requests.py index ebff33dd..d5c9eaa1 100755 --- a/test_requests.py +++ b/test_requests.py @@ -531,7 +531,10 @@ class RequestsTestSuite(unittest.TestCase): def test_invalid_content(self): - r = requests.get('http://somedomainthatclearlydoesntexistg.com') + # WARNING: if you're using a terrible DNS provider (comcast), + # this will fail. + r = requests.get('http://somedomainthatclearlydoesntexistg.com', allow_redirects=False) + assert r.content == None