/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/test_https_urllib.py

  • Committer: Jelmer Vernooij
  • Date: 2020-07-05 12:50:01 UTC
  • mfrom: (7490.40.46 work)
  • mto: (7490.40.48 work)
  • mto: This revision was merged to the branch mainline in revision 7519.
  • Revision ID: jelmer@jelmer.uk-20200705125001-7s3vo0p55szbbws7
Merge lp:brz/3.1.

Show diffs side-by-side

added added

removed removed

Lines of Context:
79
79
 
80
80
class MatchHostnameTests(tests.TestCase):
81
81
 
 
82
    def setUp(self):
 
83
        super(MatchHostnameTests, self).setUp()
 
84
        if sys.version_info < (2, 7, 9):
 
85
            raise tests.TestSkipped(
 
86
                'python version too old to provide proper'
 
87
                ' https hostname verification')
 
88
 
82
89
    def test_no_certificate(self):
83
90
        self.assertRaises(ValueError,
84
91
                          ssl.match_hostname, {}, "example.com")