mirror of
https://github.com/python/cpython.git
synced 2025-10-09 16:34:44 +00:00
Furniture is not very reliable these days (buildbot failures).
This commit is contained in:
parent
0a62823d81
commit
1bfd0cc5d4
1 changed files with 6 additions and 2 deletions
|
@ -1,6 +1,7 @@
|
|||
import io
|
||||
import unittest
|
||||
import urllib.robotparser
|
||||
from urllib.error import URLError
|
||||
from test import support
|
||||
|
||||
class RobotTestCase(unittest.TestCase):
|
||||
|
@ -214,8 +215,11 @@ class NetworkTestCase(unittest.TestCase):
|
|||
url = 'http://mueblesmoraleda.com'
|
||||
parser = urllib.robotparser.RobotFileParser()
|
||||
parser.set_url(url)
|
||||
try:
|
||||
parser.read()
|
||||
self.assertEqual(parser.can_fetch("*", url+"/robots.txt"), False)
|
||||
except URLError:
|
||||
self.skipTest('mueblesmoraleda.com is unavailable')
|
||||
|
||||
def testPythonOrg(self):
|
||||
if not support.is_resource_enabled('network'):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue