mirror of
https://github.com/python/cpython.git
synced 2025-09-08 01:41:19 +00:00
Use HTTP in testPythonOrg
This commit is contained in:
parent
fa0c885478
commit
a3c1728bb6
1 changed files with 1 additions and 1 deletions
|
@ -276,7 +276,7 @@ class NetworkTestCase(unittest.TestCase):
|
||||||
support.requires('network')
|
support.requires('network')
|
||||||
with support.transient_internet('www.python.org'):
|
with support.transient_internet('www.python.org'):
|
||||||
parser = urllib.robotparser.RobotFileParser(
|
parser = urllib.robotparser.RobotFileParser(
|
||||||
"https://www.python.org/robots.txt")
|
"http://www.python.org/robots.txt")
|
||||||
parser.read()
|
parser.read()
|
||||||
self.assertTrue(
|
self.assertTrue(
|
||||||
parser.can_fetch("*", "http://www.python.org/robots.txt"))
|
parser.can_fetch("*", "http://www.python.org/robots.txt"))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue