From f5bbb9714d66103280d0ca10742877f4522787ff Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Wed, 9 Nov 2011 10:24:41 -0500 Subject: [PATCH] Note about terrible DNS providers for testing --- test_requests.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test_requests.py b/test_requests.py index ebff33d..d5c9eaa 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 -- 2.7.4