Skip to content
Myr

Note about terrible DNS providers for testing

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 8c90c61 · Browse files · 1 file+4 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−1 removed

  • other:+4 added−1 removed

1 file+4 added−1 removed

modified:test_requests.py+4 added-1 removed
529 unmodified lines
530 assert params3['c'] in r3.content531532 def test_invalid_content(self):533534 # WARNING: if you're using a terrible DNS provider (comcast),535 # this will fail.534 r = requests.get('http://somedomainthatclearlydoesntexistg.com')536 r = requests.get('http://somedomainthatclearlydoesntexistg.com', allow_redirects=False)537538 assert r.content == None539540541if __name__ == '__main__':
1 unmodified line