Skip to content

Commit

Permalink
MINOR: [Python][CI] Add upper bound on pytest version (apache#39827)
Browse files Browse the repository at this point in the history
### Rationale for this change

The PyArrow test suite relies on the pytest-lazy-fixture plugin, which breaks on pytest 8.0.0: TvoroG/pytest-lazy-fixture#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 <antoine@python.org>
Signed-off-by: Antoine Pitrou <antoine@python.org>
  • Loading branch information
pitrou committed Jan 29, 2024
1 parent 800254f commit 87dd4c4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ci/conda_env_python.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion python/requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
cffi
hypothesis
pandas
pytest
pytest<8
pytest-lazy-fixture
pytz
2 changes: 1 addition & 1 deletion python/requirements-wheel-test.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cffi
cython
hypothesis
pytest
pytest<8
pytest-lazy-fixture
pytz
tzdata; sys_platform == 'win32'
Expand Down

0 comments on commit 87dd4c4

Please sign in to comment.