]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Unskip testPythonOrg in test_robotparser
authorBerker Peksag <berker.peksag@gmail.com>
Sun, 11 Sep 2016 12:27:07 +0000 (15:27 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Sun, 11 Sep 2016 12:27:07 +0000 (15:27 +0300)
We should probably use pythontest.net for this.

Lib/test/test_robotparser.py

index 408219979290f3bc89da3b1599cb2b75c425f828..27201a0670ba873e9204f0bb9905ed44a243751b 100644 (file)
@@ -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"))