Skip to content

Test test_key_too_short fails  #176

@tkdchen

Description

@tkdchen

When run tests from master branch within testenv py36-base, the expected error BadDigestError is not raised.

    @pytest.mark.parametrize("Backend,ExceptionType", _backend_exception_types())
    def test_key_too_short(self, Backend, ExceptionType):
        key = Backend(TOO_SHORT_PRIVATE_KEY, ALGORITHMS.ES512)
        with pytest.raises(ExceptionType):
>           key.sign(b'foo')
E           Failed: DID NOT RAISE <class 'ecdsa.keys.BadDigestError'>

tests/algorithms/test_EC.py:121: Failed

Steps to reproduce:

  • create a virtual environment
  • install tox
  • tox -e py36-base

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions