You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug, including details regarding any error messages.
When executing the python tests, pytest raises a deprecation warning:
pyarrow/conftest.py:220
.../apache/arrow/python/pyarrow/conftest.py:220: PytestRemovedIn9Warning: The (path: py.path.local) argument is deprecated, please use (collection_path: pathlib.Path)
see https://docs.pytest.org/en/latest/deprecations.html#py-path-local-arguments-for-hooks-replaced-with-pathlib-path
def pytest_ignore_collect(path, config):
…45170)
### Rationale for this change
Prevent pytest from logging a warning during the unit tests and adapt to the future removal of the path argument in the `pytest_ignore_collect` hook.
### What changes are included in this PR?
This changes the deprecated `path` argument in the pytest `pytest_ignore_collect` hook to `collection_path` which it should be as of pytest 7.0: https://docs.pytest.org/en/latest/deprecations.html#py-path-local-arguments-for-hooks-replaced-with-pathlib-path
### Are these changes tested?
The existing tests keep on running without a deprecation warning being logged for this.
### Are there any user-facing changes?
No
* GitHub Issue: #45169
Authored-by: Rob Van Mieghem <[email protected]>
Signed-off-by: Antoine Pitrou <[email protected]>
Describe the bug, including details regarding any error messages.
When executing the python tests, pytest raises a deprecation warning:
The path argument has been deprecated since pytest 7.0 and is scheduled for removal in pytest 9:
https://docs.pytest.org/en/latest/deprecations.html#py-path-local-arguments-for-hooks-replaced-with-pathlib-path
Component(s)
Python
The text was updated successfully, but these errors were encountered: