From 87dd4c4ceaef316033f3709e496805710555764e Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Mon, 29 Jan 2024 17:41:47 +0100 Subject: [PATCH] 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 Signed-off-by: Antoine Pitrou --- 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 97203442129c4..5fdd21d2bd1f9 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 9f07e5c57bd09..b3ba5d852b968 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 516ec0fccc2e9..c74a8ca6908a7 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'