mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #20939: Use www.example.com instead of www.python.org to avoid test
failures when ssl is not present.
This commit is contained in:
parent
e74153a436
commit
5a507f0f05
5 changed files with 26 additions and 20 deletions
|
@ -1440,7 +1440,7 @@ class MiscTests(unittest.TestCase):
|
|||
'test requires network access')
|
||||
def test_issue16464(self):
|
||||
opener = urllib.request.build_opener()
|
||||
request = urllib.request.Request("http://www.python.org/~jeremy/")
|
||||
request = urllib.request.Request("http://www.example.com/")
|
||||
self.assertEqual(None, request.data)
|
||||
|
||||
opener.open(request, "1".encode("us-ascii"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue