diff options
author | Ned Deily <nad@acm.org> | 2014-03-27 06:31:39 (GMT) |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2014-03-27 06:31:39 (GMT) |
commit | 5a507f0f05d6204559af7c54aabe3bd3a6953dfd (patch) | |
tree | 0fbcb79b8d95c8f5fd9075ac45a9ae766b48bf8e /Lib/test/test_site.py | |
parent | e74153a436a844f4606cba80ee6f9e41bd532df4 (diff) | |
download | cpython-5a507f0f05d6204559af7c54aabe3bd3a6953dfd.zip cpython-5a507f0f05d6204559af7c54aabe3bd3a6953dfd.tar.gz cpython-5a507f0f05d6204559af7c54aabe3bd3a6953dfd.tar.bz2 |
Issue #20939: Use www.example.com instead of www.python.org to avoid test
failures when ssl is not present.
Diffstat (limited to 'Lib/test/test_site.py')
-rw-r--r-- | Lib/test/test_site.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py index 2d214f4..58a3ee8 100644 --- a/Lib/test/test_site.py +++ b/Lib/test/test_site.py @@ -414,8 +414,10 @@ class ImportSideEffectTests(unittest.TestCase): @test.support.requires_resource('network') @unittest.skipUnless(sys.version_info[3] == 'final', 'only for released versions') + @unittest.skipUnless(hasattr(urllib.request, "HTTPSHandler"), + 'need SSL support to download license') def test_license_exists_at_url(self): - # This test is a bit fragile since it depends on the format of the + # This test `is a bit fragile since it depends on the format of the # string displayed by license in the absence of a LICENSE file. url = license._Printer__data.split()[1] req = urllib.request.Request(url, method='HEAD') |