This is an automated email from the ASF dual-hosted git repository.

raulcd pushed a commit to branch maint-15.0.x
in repository https://gitbox.apache.org/repos/asf/arrow.git

commit ba6a8f56635fedd8e1d2604664b9dddccc11ddc0
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'

Reply via email to