summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-04-02 17:12:12 +0000
committerAntoine Pitrou <solipsis@pitrou.net>2010-04-02 17:12:12 +0000
commit1bfd0cc5d40018a6dd9f279d6d7acb829c76cc8f (patch)
tree6aaf13be17df2751c92f1eb6c5943baae48e1a92 /Lib/test
parent0a62823d81c0ee827c66d8767754e571dfee8693 (diff)
downloadcpython-git-1bfd0cc5d40018a6dd9f279d6d7acb829c76cc8f.tar.gz
Furniture is not very reliable these days (buildbot failures).
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_robotparser.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/Lib/test/test_robotparser.py b/Lib/test/test_robotparser.py
index cc8b3900e4..86ebe9fbea 100644
--- a/Lib/test/test_robotparser.py
+++ b/Lib/test/test_robotparser.py
@@ -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)
- parser.read()
- self.assertEqual(parser.can_fetch("*", url+"/robots.txt"), False)
+ 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'):