[Bug 5285] New: tests/test-url.py emits warnings with python 2.6

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Sat Jul 2 04:35:34 EDT 2016


            Bug ID: 5285
           Summary: tests/test-url.py emits warnings with python 2.6
           Product: Mercurial
           Version: 3.8.4
          Hardware: PC
                OS: Other
            Status: UNCONFIRMED
          Severity: bug
          Priority: wish
         Component: Mercurial
          Assignee: bugzilla at selenic.com
          Reporter: apyhalov at gmail.com
                CC: mercurial-devel at selenic.com

With python 2.6 Mercurial 3.8.4 tests fail because tests/test-url.py emits the
following warning: 
DeprecationWarning: BaseException.message has been deprecated as of Python 2.6
  return e.message

And corresponding lines in sslutil.py look like

    if not dnsnames:
        # The subject is only checked when there is no DNS in subjectAltName.
        for sub in cert.get('subject', []):
            for key, value in sub:
                # According to RFC 2818 the most specific Common Name must
                # be used.
                if key == 'commonName':
                    # 'subject' entries are unicide.
                        value = value.encode('ascii')
                    except UnicodeEncodeError:
                        return _('IDN in certificate not supported')

                        if _dnsnamematch(value, hostname):
                    except wildcarderror as e:
                        return e.message

You are receiving this mail because:
You are on the CC list for the bug.

More information about the Mercurial-devel mailing list