Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failure with Python 3.10/3.11 #2

Open
fabaff opened this issue Mar 19, 2023 · 0 comments
Open

Test failure with Python 3.10/3.11 #2

fabaff opened this issue Mar 19, 2023 · 0 comments

Comments

@fabaff
Copy link

fabaff commented Mar 19, 2023

Description

Test failure

What I Did

Running pytest

============================= test session starts ==============================
platform linux -- Python 3.10.10, pytest-7.2.1, pluggy-1.0.0
rootdir: /build/faraday_agent_parameters_types-1.2.0, configfile: setup.cfg
collected 49 items                                                             

tests/test_faraday_agent_parameters_types.py ........................... [ 55%]
................                                                         [ 87%]
tests/test_manifests.py .....F                                           [100%]

=================================== FAILURES ===================================
___________ Test_manifests_versions. ___________

self = <tests.test_manifests.Test_manifests_versions object at 0x7ffff5fc8d00>

    def test_incorrect_version_requested(self):
        with pytest.raises(ValueError) as error:
            get_manifests("hola")
>       assert "Version requested not valid" in str(error.value)
E       assert 'Version requested not valid' in "Invalid version: 'hola'"
E        +  where "Invalid version: 'hola'" = str(InvalidVersion("Invalid version: 'hola'"))
E        +    where InvalidVersion("Invalid version: 'hola'") = <ExceptionInfo InvalidVersion("Invalid version: 'hola'") tblen=4>.value

tests/test_manifests.py:68: AssertionError
=============================== warnings summary ===============================
@fabaff fabaff changed the title Test failure with Python 3.11 Test failure with Python 3.10/3.11 Mar 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant