This is an automated email from the ASF dual-hosted git repository.
apitrou pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/main by this push:
new 87dd4c4cea MINOR: [Python][CI] Add upper bound on pytest version
(#39827)
87dd4c4cea is described below
commit 87dd4c4ceaef316033f3709e496805710555764e
Author: Antoine Pitrou <[email protected]>
AuthorDate: Mon Jan 29 17:41:47 2024 +0100
MINOR: [Python][CI] Add upper bound on pytest version (#39827)
### Rationale for this change
The PyArrow test suite relies on the pytest-lazy-fixture plugin, which
breaks on pytest 8.0.0: https://github.com/TvoroG/pytest-lazy-fixture/issues/65
### What changes are included in this PR?
Avoid installing pytest 8 on CI builds, by putting an upper bound on the
pytest version.
### Are these changes tested?
Yes, by construction.
### Are there any user-facing changes?
No.
Authored-by: Antoine Pitrou <[email protected]>
Signed-off-by: Antoine Pitrou <[email protected]>
---
ci/conda_env_python.txt | 2 +-
python/requirements-test.txt | 2 +-
python/requirements-wheel-test.txt | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/ci/conda_env_python.txt b/ci/conda_env_python.txt
index 9720344212..5fdd21d2bd 100644
--- a/ci/conda_env_python.txt
+++ b/ci/conda_env_python.txt
@@ -23,7 +23,7 @@ cloudpickle
fsspec
hypothesis
numpy>=1.16.6
-pytest
+pytest<8 # pytest-lazy-fixture broken on pytest 8.0.0
pytest-faulthandler
pytest-lazy-fixture
s3fs>=2023.10.0
diff --git a/python/requirements-test.txt b/python/requirements-test.txt
index 9f07e5c57b..b3ba5d852b 100644
--- a/python/requirements-test.txt
+++ b/python/requirements-test.txt
@@ -1,6 +1,6 @@
cffi
hypothesis
pandas
-pytest
+pytest<8
pytest-lazy-fixture
pytz
diff --git a/python/requirements-wheel-test.txt
b/python/requirements-wheel-test.txt
index 516ec0fccc..c74a8ca690 100644
--- a/python/requirements-wheel-test.txt
+++ b/python/requirements-wheel-test.txt
@@ -1,7 +1,7 @@
cffi
cython
hypothesis
-pytest
+pytest<8
pytest-lazy-fixture
pytz
tzdata; sys_platform == 'win32'