How to deal with "Direct construction of _pytest.python.Function has been deprecated, please use _pytest.python.Function.from_parent." #10951
-
While updating python to 3.10, we also updated pytest and plugins to the latest version: After the update, all tests fail with this error This seems to be a pytest internal issue because there are no other exceptions and errors on our test code. How can we resolve this issue? Thoughts and comments are welcome |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, Run with |
Beta Was this translation helpful? Give feedback.
Hi,
Run with
--fulltrace
so we can get the full traceback, and pinpoint the code which is using the deprecated way of creating functions.