Skip to content

Commit 778affc

Browse files
simonjayhawkinsTomAugspurger
authored andcommitted
CI: Set pytest minversion to 4.0.2 (#25402)
* CI: Set pytest minversion to 4.0.2
1 parent ece6074 commit 778affc

21 files changed

+37
-22
lines changed

ci/deps/azure-27-compat.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ dependencies:
1818
- xlsxwriter=0.5.2
1919
- xlwt=0.7.5
2020
# universal
21-
- pytest
21+
- pytest>=4.0.2
2222
- pytest-xdist
2323
- pytest-mock
2424
- isort

ci/deps/azure-27-locale.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ dependencies:
2020
- xlsxwriter=0.5.2
2121
- xlwt=0.7.5
2222
# universal
23-
- pytest
23+
- pytest>=4.0.2
2424
- pytest-xdist
2525
- pytest-mock
2626
- hypothesis>=3.58.0

ci/deps/azure-36-locale_slow.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ dependencies:
2626
- xlsxwriter
2727
- xlwt
2828
# universal
29-
- pytest
29+
- pytest>=4.0.2
3030
- pytest-xdist
3131
- pytest-mock
3232
- moto

ci/deps/azure-37-locale.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dependencies:
2525
- xlsxwriter
2626
- xlwt
2727
# universal
28-
- pytest
28+
- pytest>=4.0.2
2929
- pytest-xdist
3030
- pytest-mock
3131
- isort

ci/deps/azure-37-numpydev.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dependencies:
66
- pytz
77
- Cython>=0.28.2
88
# universal
9-
- pytest
9+
- pytest>=4.0.2
1010
- pytest-xdist
1111
- pytest-mock
1212
- hypothesis>=3.58.0

ci/deps/azure-macos-35.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ dependencies:
2121
- xlrd
2222
- xlsxwriter
2323
- xlwt
24-
# universal
25-
- pytest
26-
- pytest-xdist
27-
- pytest-mock
2824
- isort
2925
- pip:
3026
- python-dateutil==2.5.3
27+
# universal
28+
- pytest>=4.0.2
29+
- pytest-xdist
30+
- pytest-mock
3131
- hypothesis>=3.58.0

ci/deps/azure-windows-27.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dependencies:
2525
- xlwt
2626
# universal
2727
- cython>=0.28.2
28-
- pytest
28+
- pytest>=4.0.2
2929
- pytest-xdist
3030
- pytest-mock
3131
- moto

ci/deps/azure-windows-36.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ dependencies:
2323
- xlwt
2424
# universal
2525
- cython>=0.28.2
26-
- pytest
26+
- pytest>=4.0.2
2727
- pytest-xdist
2828
- pytest-mock
2929
- hypothesis>=3.58.0

ci/deps/travis-27.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ dependencies:
3939
- xlsxwriter=0.5.2
4040
- xlwt=0.7.5
4141
# universal
42-
- pytest
42+
- pytest>=4.0.2
4343
- pytest-xdist
4444
- pytest-mock
4545
- moto==1.3.4

ci/deps/travis-36-doc.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,6 @@ dependencies:
4141
- xlsxwriter
4242
- xlwt
4343
# universal
44-
- pytest
44+
- pytest>=4.0.2
4545
- pytest-xdist
4646
- isort

ci/deps/travis-36-locale.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ dependencies:
2828
- xlsxwriter
2929
- xlwt
3030
# universal
31-
- pytest
31+
- pytest>=4.0.2
3232
- pytest-xdist
3333
- pytest-mock
3434
- moto

ci/deps/travis-36-slow.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ dependencies:
2525
- xlsxwriter
2626
- xlwt
2727
# universal
28-
- pytest
28+
- pytest>=4.0.2
2929
- pytest-xdist
3030
- pytest-mock
3131
- moto

ci/deps/travis-36.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ dependencies:
3333
- xlsxwriter
3434
- xlwt
3535
# universal
36-
- pytest
36+
- pytest>=4.0.2
3737
- pytest-xdist
3838
- pytest-cov
3939
- pytest-mock

ci/deps/travis-37.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ dependencies:
1212
- nomkl
1313
- pyarrow
1414
- pytz
15-
- pytest
15+
- pytest>=4.0.2
1616
- pytest-xdist
1717
- pytest-mock
1818
- hypothesis>=3.58.0

doc/source/development/contributing.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ extensions in `numpy.testing
731731

732732
.. note::
733733

734-
The earliest supported pytest version is 3.6.0.
734+
The earliest supported pytest version is 4.0.2.
735735

736736
Writing tests
737737
~~~~~~~~~~~~~

doc/source/install.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ pandas is equipped with an exhaustive set of unit tests, covering about 97% of
202202
the code base as of this writing. To run it on your machine to verify that
203203
everything is working (and that you have all of the dependencies, soft and hard,
204204
installed), make sure you have `pytest
205-
<http://docs.pytest.org/en/latest/>`__ >= 3.6 and `Hypothesis
205+
<http://docs.pytest.org/en/latest/>`__ >= 4.0.2 and `Hypothesis
206206
<https://hypothesis.readthedocs.io/>`__ >= 3.58, then run:
207207

208208
::

doc/source/whatsnew/v0.25.0.rst

+14
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,20 @@ is respected in indexing. (:issue:`24076`, :issue:`16785`)
6363
df = pd.DataFrame([0], index=pd.DatetimeIndex(['2019-01-01'], tz='US/Pacific'))
6464
df['2019-01-01 12:00:00+04:00':'2019-01-01 13:00:00+04:00']
6565

66+
.. _whatsnew_0250.api_breaking.deps:
67+
68+
Increased minimum versions for dependencies
69+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
70+
71+
We have updated our minimum supported versions of dependencies (:issue:`23519`).
72+
If installed, we now require:
73+
74+
+-----------------+-----------------+----------+
75+
| Package | Minimum Version | Required |
76+
+=================+=================+==========+
77+
| pytest (dev) | 4.0.2 | |
78+
+-----------------+-----------------+----------+
79+
6680
.. _whatsnew_0250.api.other:
6781

6882
Other API Changes

environment.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ dependencies:
1919
- hypothesis>=3.82
2020
- isort
2121
- moto
22-
- pytest>=4.0
22+
- pytest>=4.0.2
2323
- pytest-mock
2424
- sphinx
2525
- numpydoc

pandas/util/_tester.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def test(extra_args=None):
1111
try:
1212
import pytest
1313
except ImportError:
14-
raise ImportError("Need pytest>=3.0 to run tests")
14+
raise ImportError("Need pytest>=4.0.2 to run tests")
1515
try:
1616
import hypothesis # noqa
1717
except ImportError:

requirements-dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ gitpython
1010
hypothesis>=3.82
1111
isort
1212
moto
13-
pytest>=4.0
13+
pytest>=4.0.2
1414
pytest-mock
1515
sphinx
1616
numpydoc

setup.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ split_penalty_after_opening_bracket = 1000000
5757
split_penalty_logical_operator = 30
5858

5959
[tool:pytest]
60+
minversion = 4.0.2
6061
testpaths = pandas
6162
markers =
6263
single: mark a test as single cpu only

0 commit comments

Comments
 (0)