[Python-checkins] r86135 - python/branches/py3k/Lib/test/test_urllib2net.py

antoine.pitrou python-checkins at python.org
Wed Nov 3 09:53:25 CET 2010


Author: antoine.pitrou
Date: Wed Nov  3 09:53:25 2010
New Revision: 86135

Log:
Disabling SNI test; server admin would not like us to use it for automated tests.



Modified:
   python/branches/py3k/Lib/test/test_urllib2net.py

Modified: python/branches/py3k/Lib/test/test_urllib2net.py
==============================================================================
--- python/branches/py3k/Lib/test/test_urllib2net.py	(original)
+++ python/branches/py3k/Lib/test/test_urllib2net.py	Wed Nov  3 09:53:25 2010
@@ -302,13 +302,14 @@
 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)


More information about the Python-checkins mailing list