summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_robotparser.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-11-25 21:16:55 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-11-25 21:16:55 (GMT)
commitf671de4dd4b3c8fd124f45e863b4f07ffc1c9179 (patch)
tree9c231c0ece644fc592e8772ea1be3e08d0a0c56f /Lib/test/test_robotparser.py
parent72275ef7c322e715210ee24fb3eb72df7c0c0a6d (diff)
downloadcpython-f671de4dd4b3c8fd124f45e863b4f07ffc1c9179.zip
cpython-f671de4dd4b3c8fd124f45e863b4f07ffc1c9179.tar.gz
cpython-f671de4dd4b3c8fd124f45e863b4f07ffc1c9179.tar.bz2
don't fail tests when www.python.org can't be validated by the system
Diffstat (limited to 'Lib/test/test_robotparser.py')
-rw-r--r--Lib/test/test_robotparser.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_robotparser.py b/Lib/test/test_robotparser.py
index 36ac941..e4b01f1 100644
--- a/Lib/test/test_robotparser.py
+++ b/Lib/test/test_robotparser.py
@@ -276,14 +276,15 @@ class NetworkTestCase(unittest.TestCase):
self.assertEqual(parser.can_fetch("*", robots_url), False)
@unittest.skipUnless(HAVE_HTTPS, 'need SSL support to download license')
+ @test_support.system_must_validate_cert
def testPythonOrg(self):
test_support.requires('network')
with test_support.transient_internet('www.python.org'):
parser = 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"))
+ parser.can_fetch("*", "https://www.python.org/robots.txt"))
def test_main():