Skip to content

Commit b5d81cf

Browse files
WillAydjreback
authored andcommitted
Bump pytest (#22320)
1 parent f07a790 commit b5d81cf

File tree

6 files changed

+16
-10
lines changed

6 files changed

+16
-10
lines changed

ci/environment-dev.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ dependencies:
88
- flake8
99
- flake8-comprehensions
1010
- moto
11-
- pytest>=3.1
11+
- pytest>=3.6
1212
- python-dateutil>=2.5.0
1313
- python=3
1414
- pytz

ci/requirements_dev.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ NumPy
55
flake8
66
flake8-comprehensions
77
moto
8-
pytest>=3.1
8+
pytest>=3.6
99
python-dateutil>=2.5.0
1010
pytz
1111
setuptools>=24.2.0

doc/source/contributing.rst

+6-6
Original file line numberDiff line numberDiff line change
@@ -652,13 +652,13 @@ Adding tests is one of the most common requests after code is pushed to *pandas*
652652
it is worth getting in the habit of writing tests ahead of time so this is never an issue.
653653

654654
Like many packages, *pandas* uses `pytest
655-
<http://doc.pytest.org/en/latest/>`_ and the convenient
655+
<http://docs.pytest.org/en/latest/>`_ and the convenient
656656
extensions in `numpy.testing
657657
<http://docs.scipy.org/doc/numpy/reference/routines.testing.html>`_.
658658

659659
.. note::
660660

661-
The earliest supported pytest version is 3.1.0.
661+
The earliest supported pytest version is 3.6.0.
662662

663663
Writing tests
664664
~~~~~~~~~~~~~
@@ -702,7 +702,7 @@ Transitioning to ``pytest``
702702
class TestReallyCoolFeature(object):
703703
....
704704
705-
Going forward, we are moving to a more *functional* style using the `pytest <http://doc.pytest.org/en/latest/>`__ framework, which offers a richer testing
705+
Going forward, we are moving to a more *functional* style using the `pytest <http://docs.pytest.org/en/latest/>`__ framework, which offers a richer testing
706706
framework that will facilitate testing and developing. Thus, instead of writing test classes, we will write test functions like this:
707707

708708
.. code-block:: python
@@ -766,7 +766,7 @@ A test run of this yields
766766
767767
((pandas) bash-3.2$ pytest test_cool_feature.py -v
768768
=========================== test session starts ===========================
769-
platform darwin -- Python 3.6.2, pytest-3.2.1, py-1.4.31, pluggy-0.4.0
769+
platform darwin -- Python 3.6.2, pytest-3.6.0, py-1.4.31, pluggy-0.4.0
770770
collected 11 items
771771
772772
tester.py::test_dtypes[int8] PASSED
@@ -788,7 +788,7 @@ Tests that we have ``parametrized`` are now accessible via the test name, for ex
788788
789789
((pandas) bash-3.2$ pytest test_cool_feature.py -v -k int8
790790
=========================== test session starts ===========================
791-
platform darwin -- Python 3.6.2, pytest-3.2.1, py-1.4.31, pluggy-0.4.0
791+
platform darwin -- Python 3.6.2, pytest-3.6.0, py-1.4.31, pluggy-0.4.0
792792
collected 11 items
793793
794794
test_cool_feature.py::test_dtypes[int8] PASSED
@@ -837,7 +837,7 @@ On Windows, one can type::
837837
This can significantly reduce the time it takes to locally run tests before
838838
submitting a pull request.
839839
840-
For more, see the `pytest <http://doc.pytest.org/en/latest/>`_ documentation.
840+
For more, see the `pytest <http://docs.pytest.org/en/latest/>`_ documentation.
841841
842842
.. versionadded:: 0.20.0
843843

doc/source/install.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -202,15 +202,15 @@ 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://doc.pytest.org/en/latest/>`__ and run:
205+
<http://docs.pytest.org/en/latest/>`__ >= 3.6 and run:
206206

207207
::
208208

209209
>>> import pandas as pd
210210
>>> pd.test()
211211
running: pytest --skip-slow --skip-network C:\Users\TP\Anaconda3\envs\py36\lib\site-packages\pandas
212212
============================= test session starts =============================
213-
platform win32 -- Python 3.6.2, pytest-3.2.1, py-1.4.34, pluggy-0.4.0
213+
platform win32 -- Python 3.6.2, pytest-3.6.0, py-1.4.34, pluggy-0.4.0
214214
rootdir: C:\Users\TP\Documents\Python\pandasdev\pandas, inifile: setup.cfg
215215
collected 12145 items / 3 skipped
216216

doc/source/whatsnew/v0.23.5.txt

+5
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ Fixed Regressions
2626
-
2727
-
2828

29+
30+
Development
31+
~~~~~~~~~~~
32+
- The minimum required pytest version has been increased to 3.6 (:issue:`22319`)
33+
2934
.. _whatsnew_0235.bug_fixes:
3035

3136
Bug Fixes

setup.cfg

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ split_penalty_after_opening_bracket = 1000000
3131
split_penalty_logical_operator = 30
3232

3333
[tool:pytest]
34+
minversion = 3.6
3435
testpaths = pandas
3536
markers =
3637
single: mark a test as single cpu only

0 commit comments

Comments
 (0)