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

5.3.6: pytest fails in t/unit/transport/test_pyro.py::test_PyroTransport::test_driver_version unit and deprecation warning #1979

Open
kloczek opened this issue Apr 7, 2024 · 0 comments

Comments

@kloczek
Copy link

kloczek commented Apr 7, 2024

Looks like something is wrong with that unit.
I'm using python 3.10.14 and pytest 8.1.1

Here is pytest output:
========================================================================================= FAILURES ==========================================================================================
__________________________________________________________________________ test_PyroTransport.test_driver_version ___________________________________________________________________________

self = <t.unit.transport.test_pyro.test_PyroTransport object at 0x7f5e43280bb0>

    def test_driver_version(self):
>       assert self.c.transport.driver_version()

t/unit/transport/test_pyro.py:28:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

self = <kombu.transport.pyro.Transport object at 0x7f5e3b547f40>

    def driver_version(self):
>       return pyro.__version__
E       AttributeError: 'NoneType' object has no attribute '__version__'

kombu/transport/pyro.py:147: AttributeError
===================================================================================== warnings summary ======================================================================================
../../../../../usr/lib/python3.10/site-packages/pytest_freezegun.py:15: 2216 warnings
t/unit/utils/test_json.py: 2 warnings
  /usr/lib/python3.10/site-packages/pytest_freezegun.py:15: DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.
    if LooseVersion(pytest.__version__) < LooseVersion('3.6.0'):

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
================================================================================== short test summary info ==================================================================================
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