diff options
author | Ned Deily <nad@acm.org> | 2014-03-26 23:33:28 -0700 |
---|---|---|
committer | Ned Deily <nad@acm.org> | 2014-03-26 23:33:28 -0700 |
commit | c74e48566fd83fe85ba1a642f89c5485cb65843c (patch) | |
tree | 993f537b846c0f81b26d4c33ec1012a46cc939e0 /Lib/test/test_site.py | |
parent | 8f2420c94b350cf37b0ac06bda5539f754c1b469 (diff) | |
parent | 5a507f0f05d6204559af7c54aabe3bd3a6953dfd (diff) | |
download | cpython-git-c74e48566fd83fe85ba1a642f89c5485cb65843c.tar.gz |
Issue #20939: merge from 3.4
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 2d214f4baf..58a3ee86c4 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') |