mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Note about terrible DNS providers for testing
This commit is contained in:
+4
-1
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user