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

Functional tests fail due to https://github.com/pytest-dev/pytest-asyncio/issues/141# #10

Closed
jneo8 opened this issue Dec 20, 2023 · 1 comment

Comments

@jneo8
Copy link
Contributor

jneo8 commented Dec 20, 2023

Functional tests fail with deprecated functionality, see pytest-dev/pytest-asyncio#141

Example:

ERROR tests/functional/test_routing.py - pytest.PytestDeprecationWarning: Direct construction of Function has been deprecated, please use Function.from_parent.

Workaround is to limit pytest to <5.4.0, which clearly isn't a long term solution.


Imported from Launchpad using lp2gh.

  • date created: 2020-08-05T03:49:59Z

  • owner: xavpaice

  • assignee: None

  • the launchpad url

@jneo8
Copy link
Contributor Author

jneo8 commented Dec 20, 2023

(by lihuiguo)
Looks like this bug was fixed.

$ cat functional/requirements.txt |grep pytest
pytest < 5.4.0 # pytest 5.4.0 deprecated pytest.Function() construction

Functional test passed
https://pastebin.canonical.com/p/fXXN4qtry5/

@jneo8 jneo8 closed this as completed Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant