summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-09-11 12:27:07 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-09-11 12:27:07 (GMT)
commit966ad74bf906aaae32d83e87993926583c51d598 (patch)
tree83bf8abbf83b2544746b920a1483d71df8ef3ab3
parenta1e9ab34a9cfe335af1b34287cdda6743c53487d (diff)
downloadcpython-966ad74bf906aaae32d83e87993926583c51d598.zip
cpython-966ad74bf906aaae32d83e87993926583c51d598.tar.gz
cpython-966ad74bf906aaae32d83e87993926583c51d598.tar.bz2
Unskip testPythonOrg in test_robotparser
We should probably use pythontest.net for this.
-rw-r--r--Lib/test/test_robotparser.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/Lib/test/test_robotparser.py b/Lib/test/test_robotparser.py
index 4082199..27201a0 100644
--- a/Lib/test/test_robotparser.py
+++ b/Lib/test/test_robotparser.py
@@ -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"))