summaryrefslogtreecommitdiff
path: root/Lib/test/test_urllib2net.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2010-11-03 08:53:25 +0000
committerAntoine Pitrou <solipsis@pitrou.net>2010-11-03 08:53:25 +0000
commit0eee1f588c9a6c3b15c0b9607357e2b0aadd808f (patch)
treed89cdada29ee4eca4435564818b7c70d969c21fe /Lib/test/test_urllib2net.py
parent0a9397fcf38e83d91d4396d56831d4631ba67a80 (diff)
downloadcpython-git-0eee1f588c9a6c3b15c0b9607357e2b0aadd808f.tar.gz
Disabling SNI test; server admin would not like us to use it for automated tests.
Diffstat (limited to 'Lib/test/test_urllib2net.py')
-rw-r--r--Lib/test/test_urllib2net.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_urllib2net.py b/Lib/test/test_urllib2net.py
index dedb9d8b3d..eab15735de 100644
--- a/Lib/test/test_urllib2net.py
+++ b/Lib/test/test_urllib2net.py
@@ -302,13 +302,14 @@ class TimeoutTest(unittest.TestCase):
class HTTPSTests(unittest.TestCase):
def test_sni(self):
+ self.skipTest("test disabled - test server needed")
# Checks that Server Name Indication works, if supported by the
# OpenSSL linked to.
# The ssl module itself doesn't have server-side support for SNI,
# so we rely on a third-party test site.
expect_sni = ssl.HAS_SNI
- with support.transient_internet("bob.sni.velox.ch"):
- u = urllib.request.urlopen("https://bob.sni.velox.ch/")
+ with support.transient_internet("XXX"):
+ u = urllib.request.urlopen("XXX")
contents = u.readall()
if expect_sni:
self.assertIn(b"Great", contents)