Source: pyjwt Version: 1.6.4-1 Severity: serious Tags: ftbfs https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/pyjwt.html
... dh_auto_test -O--buildsystem=pybuild I: pybuild base:217: cd /build/1st/pyjwt-1.6.4/.pybuild/cpython2_2.7_jwt/build; python2.7 -m pytest tests ============================= test session starts ============================== platform linux2 -- Python 2.7.15+, pytest-3.10.1, py-1.7.0, pluggy-0.8.0 rootdir: /build/1st/pyjwt-1.6.4, inifile: setup.cfg plugins: cov-2.6.0 collected 188 items tests/test_algorithms.py ............................................. [ 23%] tests/test_api_jws.py .........................F.....s.................. [ 50%] ...... [ 53%] tests/test_api_jwt.py ..........................................F [ 76%] tests/test_cli.py ............. [ 83%] tests/test_compat.py ... [ 85%] tests/test_exceptions.py . [ 85%] tests/test_jwt.py . [ 86%] tests/test_utils.py .....x....... [ 93%] tests/contrib/test_algorithms.py sssssssssssss [100%] =================================== FAILURES =================================== ___________ TestJWS.test_decode_no_algorithms_verify_signature_false ___________ self = <tests.test_api_jws.TestJWS instance at 0x7fdb4cedc368> jws = <jwt.api_jws.PyJWS object at 0x7fdb4ceda150> def test_decode_no_algorithms_verify_signature_false(self, jws): example_secret = 'secret' example_jws = ( b'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.' b'aGVsbG8gd29ybGQ.' b'SIr03zM64awWRdPrAM_61QWsZchAtgDV3pphfHPPWkI' ) try: pytest.deprecated_call( jws.decode, example_jws, key=example_secret, > options={'verify_signature': False}, ) E Failed: DID NOT WARN. No warnings of type (<type 'exceptions.DeprecationWarning'>, <type 'exceptions.PendingDeprecationWarning'>) was emitted. The list of emitted warnings is: []. tests/test_api_jws.py:295: Failed ________________ TestJWT.test_decode_no_algorithms_verify_false ________________ self = <tests.test_api_jwt.TestJWT instance at 0x7fdb4bd8eef0> jwt = <jwt.api_jwt.PyJWT object at 0x7fdb4bda77d0> payload = {'claim': 'insanity', 'exp': 1543624411, 'iss': 'jeff'} def test_decode_no_algorithms_verify_false(self, jwt, payload): secret = 'secret' jwt_message = jwt.encode(payload, secret) try: pytest.deprecated_call( > jwt.decode, jwt_message, secret, verify=False, ) E Failed: DID NOT WARN. No warnings of type (<type 'exceptions.DeprecationWarning'>, <type 'exceptions.PendingDeprecationWarning'>) was emitted. The list of emitted warnings is: []. tests/test_api_jwt.py:517: Failed ---------- coverage: platform linux2, python 2.7.15-final-0 ---------- Name Stmts Miss Cover Missing ------------------------------------------------------------------ jwt/__init__.py 9 0 100% jwt/__main__.py 63 0 100% jwt/algorithms.py 173 2 99% 31-32 jwt/api_jws.py 130 1 99% 119 jwt/api_jwt.py 121 0 100% jwt/compat.py 35 17 51% 15-16, 26-42, 46-54 jwt/contrib/__init__.py 0 0 100% jwt/contrib/algorithms/__init__.py 0 0 100% jwt/contrib/algorithms/py_ecdsa.py 29 27 7% 8-60 jwt/contrib/algorithms/pycrypto.py 26 25 4% 2-46 jwt/exceptions.py 30 0 100% jwt/help.py 31 31 0% 1-61 jwt/utils.py 70 3 96% 11-12, 19 tests/__init__.py 0 0 100% tests/compat.py 7 2 71% 8-9 tests/contrib/__init__.py 0 0 100% tests/contrib/test_algorithms.py 104 77 26% 11, 17, 25-28, 31-34, 37-40, 43-63, 66-84, 87-103, 106-112, 118-121, 124-127, 130-147, 150-165, 168-181, 184-190 tests/keys/__init__.py 34 7 79% 28-29, 33-34, 41-44 tests/test_algorithms.py 280 2 99% 17-18 tests/test_api_jws.py 392 18 95% 24-25, 298-300, 342-344, 528-533, 610-612, 636, 659 tests/test_api_jwt.py 264 3 99% 467, 520-522 tests/test_cli.py 89 2 98% 45, 88 tests/test_compat.py 9 0 100% tests/test_exceptions.py 4 0 100% tests/test_jwt.py 8 0 100% tests/test_utils.py 14 0 100% tests/utils.py 21 1 95% 18 ------------------------------------------------------------------ TOTAL 1943 218 89% =============================== warnings summary =============================== .pybuild/cpython2_2.7_jwt/build/tests/test_utils.py:8 .pybuild/cpython2_2.7_jwt/build/tests/test_utils.py:8: RemovedInPytest4Warning: Applying marks directly to parameters is deprecated, please use pytest.param(..., marks=...) instead. For more details, see: https://docs.pytest.org/en/latest/parametrize.html .pybuild/cpython2_2.7_jwt/build/tests/test_api_jws.py::TestJWS::()::test_encode_decode /build/1st/pyjwt-1.6.4/.pybuild/cpython2_2.7_jwt/build/jwt/api_jws.py:146: DeprecationWarning: It is strongly recommended that you pass in a value for the "algorithms" argument when calling decode(). This argument will be mandatory in a future version. DeprecationWarning .pybuild/cpython2_2.7_jwt/build/tests/test_api_jws.py::TestJWS::()::test_allow_skip_verification /build/1st/pyjwt-1.6.4/.pybuild/cpython2_2.7_jwt/build/tests/test_api_jws.py:262: DeprecationWarning: The verify parameter is deprecated. Please use verify_signature in options instead. decoded_payload = jws.decode(jws_message, verify=False) .pybuild/cpython2_2.7_jwt/build/tests/test_api_jws.py::TestJWS::()::test_load_no_verification /build/1st/pyjwt-1.6.4/.pybuild/cpython2_2.7_jwt/build/tests/test_api_jws.py:306: DeprecationWarning: The verify parameter is deprecated. Please use verify_signature in options instead. decoded_payload = jws.decode(jws_message, key=None, verify=False) .pybuild/cpython2_2.7_jwt/build/tests/test_api_jws.py::TestJWS::()::test_decode_with_algo_none_and_verify_false_should_pass /build/1st/pyjwt-1.6.4/.pybuild/cpython2_2.7_jwt/build/tests/test_api_jws.py:425: DeprecationWarning: The verify parameter is deprecated. Please use verify_signature in options instead. jws.decode(jws_message, verify=False) .pybuild/cpython2_2.7_jwt/build/tests/test_api_jwt.py::TestJWT::()::test_decodes_valid_jwt /build/1st/pyjwt-1.6.4/.pybuild/cpython2_2.7_jwt/build/jwt/api_jwt.py:82: DeprecationWarning: It is strongly recommended that you pass in a value for the "algorithms" argument when calling decode(). This argument will be mandatory in a future version. DeprecationWarning -- Docs: https://docs.pytest.org/en/latest/warnings.html === 2 failed, 171 passed, 14 skipped, 1 xfailed, 6 warnings in 21.77 seconds === E: pybuild pybuild:338: test: plugin distutils failed with: exit code=1: cd /build/1st/pyjwt-1.6.4/.pybuild/cpython2_2.7_jwt/build; python2.7 -m pytest tests dh_auto_test: pybuild --test --test-pytest -i python{version} -p 2.7 returned exit code 13 make: *** [debian/rules:8: build] Error 25