Package: src:m2crypto
Version:  0.36.0-1
Severity: important
Tags: sid bullseye
User: debian-pyt...@lists.debian.org
Usertags: python3.9

Control: forwarded -1 https://gitlab.com/m2crypto/m2crypto/-/issues/274

` base64.decodestring()` was removed on Python 3.9 [0]

[0] https://docs.python.org/3/whatsnew/3.9.html


[...]

=================================== FAILURES
===================================
_________________ X509StackTestCase.test_make_stack_check_num
__________________

self = <tests.test_x509.X509StackTestCase
testMethod=test_make_stack_check_num>

    def test_make_stack_check_num(self):
        with open("tests/der_encoded_seq.b64", 'rb') as f:
            b64 = f.read()

        with warnings.catch_warnings():
            warnings.simplefilter('ignore', DeprecationWarning)
>           seq = base64.decodestring(b64)
E           AttributeError: module 'base64' has no attribute 'decodestring'

tests/test_x509.py:615: AttributeError
__________________ X509StackTestCase.test_make_stack_from_der
__________________

self = <tests.test_x509.X509StackTestCase
testMethod=test_make_stack_from_der>

    def test_make_stack_from_der(self):
        with open("tests/der_encoded_seq.b64", 'rb') as f:
            b64 = f.read()

        with warnings.catch_warnings():
            warnings.simplefilter('ignore', DeprecationWarning)
>           seq = base64.decodestring(b64)
E           AttributeError: module 'base64' has no attribute 'decodestring'

tests/test_x509.py:595: AttributeError
=============================== warnings summary
===============================
M2Crypto/X509.py:44

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_m2crypto/build/M2Crypto/X509.py:44:
SyntaxWarning: "is not" with a literal. Did you mean "!="?
    value.strip('0123456789abcdefABCDEF:') is not '':

M2Crypto/SSL/Checker.py:67

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_m2crypto/build/M2Crypto/SSL/Checker.py:67:
DeprecationWarning: invalid escape sequence \.
    numericIpMatch = re.compile('^[0-9]+(\.[0-9]+)*$')

M2Crypto/SSL/Checker.py:257

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_m2crypto/build/M2Crypto/SSL/Checker.py:257:
DeprecationWarning: invalid escape sequence \.
    certHost = certHost.replace('.', '\.')

M2Crypto/SSL/Checker.py:258

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_m2crypto/build/M2Crypto/SSL/Checker.py:258:
DeprecationWarning: invalid escape sequence \.
    certHost = certHost.replace('*', '[^\.]*')

.pybuild/cpython3_3.9_m2crypto/build/tests/test_obj.py::ObjectsTestCase::test_detailed_error_message

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_m2crypto/build/tests/test_obj.py:127:
DeprecationWarning: Please use assertRegex instead.
    self.assertRegexpMatches(str(e),

.pybuild/cpython3_3.9_m2crypto/build/tests/test_ssl.py::TwistedSSLClientTestCase::test_twisted_wrapper

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_m2crypto/build/tests/test_ssl.py:1143:
UserWarning: Skipping twisted wrapper test because twisted not found
    warnings.warn(

-- Docs: https://docs.pytest.org/en/latest/warnings.html
========= 2 failed, 297 passed, 2 skipped, 6 warnings in 78.32 seconds
=========
E: pybuild pybuild:352: test: plugin distutils failed with: exit code=1: cd
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_m2crypto/build; python3.9 -m pytest
tests
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p
"3.9 3.8" returned exit code 13
make: *** [debian/rules:17: build] Error 25
dpkg-buildpackage: error: debian/rules build subprocess returned exit
status 2

Reply via email to