mirror of
https://github.com/python/cpython.git
synced 2025-10-09 08:31:26 +00:00
Unskip testPythonOrg in test_robotparser
We should probably use pythontest.net for this.
This commit is contained in:
parent
a1e9ab34a9
commit
966ad74bf9
1 changed files with 1 additions and 2 deletions
|
@ -272,12 +272,11 @@ class PasswordProtectedSiteTestCase(unittest.TestCase):
|
|||
|
||||
class NetworkTestCase(unittest.TestCase):
|
||||
|
||||
@unittest.skip('does not handle the gzip encoding delivered by pydotorg')
|
||||
def testPythonOrg(self):
|
||||
support.requires('network')
|
||||
with support.transient_internet('www.python.org'):
|
||||
parser = urllib.robotparser.RobotFileParser(
|
||||
"http://www.python.org/robots.txt")
|
||||
"https://www.python.org/robots.txt")
|
||||
parser.read()
|
||||
self.assertTrue(
|
||||
parser.can_fetch("*", "http://www.python.org/robots.txt"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue