diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 888092e2057e1..b0b176feca2bb 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -230,7 +230,7 @@ jobs: /opt/python/cp38-cp38/bin/python -m venv ~/virtualenvs/pandas-dev . ~/virtualenvs/pandas-dev/bin/activate python -m pip install --no-cache-dir --no-deps -U pip wheel setuptools - python -m pip install --no-cache-dir versioneer[toml] cython numpy python-dateutil pytz pytest>=7.0.0 pytest-xdist>=2.2.0 pytest-asyncio>=0.17 hypothesis>=6.46.1 + python -m pip install --no-cache-dir versioneer[toml] cython numpy python-dateutil pytz pytest>=7.3.2 pytest-xdist>=2.2.0 pytest-asyncio>=0.17 hypothesis>=6.46.1 python setup.py build_ext -q -j$(nproc) python -m pip install --no-cache-dir --no-build-isolation --no-use-pep517 -e . python -m pip list @@ -299,7 +299,7 @@ jobs: python -m pip install --pre --extra-index-url https://pypi.anaconda.org/scipy-wheels-nightly/simple numpy python -m pip install git+https://github.com/nedbat/coveragepy.git python -m pip install versioneer[toml] - python -m pip install python-dateutil pytz cython hypothesis>=6.46.1 pytest>=7.0.0 pytest-xdist>=2.2.0 pytest-cov pytest-asyncio>=0.17 + python -m pip install python-dateutil pytz cython hypothesis>=6.46.1 pytest>=7.3.2 pytest-xdist>=2.2.0 pytest-cov pytest-asyncio>=0.17 python -m pip list - name: Build Pandas diff --git a/.github/workflows/wheels.yml b/.github/workflows/wheels.yml index 597f7abc1efed..ae3a9cde9999a 100644 --- a/.github/workflows/wheels.yml +++ b/.github/workflows/wheels.yml @@ -173,7 +173,7 @@ jobs: # (1. Generate sdist 2. Build wheels from sdist) # This tests the sdists, and saves some build time python -m pip install dist/*.gz - pip install hypothesis>=6.34.2 pytest>=7.0.0 pytest-xdist>=2.2.0 pytest-asyncio>=0.17 + pip install hypothesis>=6.34.2 pytest>=7.3.2 pytest-xdist>=2.2.0 pytest-asyncio>=0.17 cd .. # Not a good idea to test within the src tree python -c "import pandas; print(pandas.__version__); pandas.test(extra_args=['-m not clipboard and not single_cpu', '--skip-slow', '--skip-network', '--skip-db', '-n=2']); diff --git a/ci/deps/actions-310.yaml b/ci/deps/actions-310.yaml index 5b9919d8e4c1f..f098d26770733 100644 --- a/ci/deps/actions-310.yaml +++ b/ci/deps/actions-310.yaml @@ -9,7 +9,7 @@ dependencies: - cython>=0.29.33 # test dependencies - - pytest>=7.0.0 + - pytest>=7.3.2 - pytest-cov - pytest-xdist>=2.2.0 - pytest-asyncio>=0.17 diff --git a/ci/deps/actions-311-downstream_compat.yaml b/ci/deps/actions-311-downstream_compat.yaml index a5c92f81c0406..2fe12ee9d5d79 100644 --- a/ci/deps/actions-311-downstream_compat.yaml +++ b/ci/deps/actions-311-downstream_compat.yaml @@ -10,7 +10,7 @@ dependencies: - cython>=0.29.33 # test dependencies - - pytest>=7.0.0 + - pytest>=7.3.2 - pytest-cov - pytest-xdist>=2.2.0 - pytest-asyncio>=0.17 diff --git a/ci/deps/actions-311-numpydev.yaml b/ci/deps/actions-311-numpydev.yaml index 78a89e7a84bd7..1c21c86af713b 100644 --- a/ci/deps/actions-311-numpydev.yaml +++ b/ci/deps/actions-311-numpydev.yaml @@ -8,7 +8,7 @@ dependencies: - versioneer[toml] # test dependencies - - pytest>=7.0.0 + - pytest>=7.3.2 - pytest-cov - pytest-xdist>=2.2.0 - hypothesis>=6.34.2 diff --git a/ci/deps/actions-311-pyarrownightly.yaml b/ci/deps/actions-311-pyarrownightly.yaml index 77e4fc9d2c2d9..3903f0ca9f32b 100644 --- a/ci/deps/actions-311-pyarrownightly.yaml +++ b/ci/deps/actions-311-pyarrownightly.yaml @@ -9,7 +9,7 @@ dependencies: - cython>=0.29.33 # test dependencies - - pytest>=7.0.0 + - pytest>=7.3.2 - pytest-cov - pytest-xdist>=2.2.0 - hypothesis>=6.34.2 diff --git a/ci/deps/actions-38-minimum_versions.yaml b/ci/deps/actions-38-minimum_versions.yaml index 194b59b5abcf2..2b73b90477d8b 100644 --- a/ci/deps/actions-38-minimum_versions.yaml +++ b/ci/deps/actions-38-minimum_versions.yaml @@ -11,7 +11,7 @@ dependencies: - cython>=0.29.33 # test dependencies - - pytest>=7.0.0 + - pytest>=7.3.2 - pytest-cov - pytest-xdist>=2.2.0 - pytest-asyncio>=0.17 diff --git a/ci/deps/actions-38.yaml b/ci/deps/actions-38.yaml index 2a968f059952e..0f8accc833a47 100644 --- a/ci/deps/actions-38.yaml +++ b/ci/deps/actions-38.yaml @@ -9,7 +9,7 @@ dependencies: - cython>=0.29.33 # test dependencies - - pytest>=7.0.0 + - pytest>=7.3.2 - pytest-cov - pytest-xdist>=2.2.0 - pytest-asyncio>=0.17 diff --git a/ci/deps/actions-39.yaml b/ci/deps/actions-39.yaml index a1fba778bfc70..979d922a0d086 100644 --- a/ci/deps/actions-39.yaml +++ b/ci/deps/actions-39.yaml @@ -9,7 +9,7 @@ dependencies: - cython>=0.29.33 # test dependencies - - pytest>=7.0.0 + - pytest>=7.3.2 - pytest-cov - pytest-xdist>=2.2.0 - pytest-asyncio>=0.17 diff --git a/ci/deps/actions-pypy-38.yaml b/ci/deps/actions-pypy-38.yaml index 78ab32d6e7830..1c5969bb97799 100644 --- a/ci/deps/actions-pypy-38.yaml +++ b/ci/deps/actions-pypy-38.yaml @@ -12,7 +12,7 @@ dependencies: - cython>=0.29.33 # test dependencies - - pytest>=7.0.0 + - pytest>=7.3.2 - pytest-cov - pytest-asyncio - pytest-xdist>=2.2.0 diff --git a/ci/deps/circle-310-arm64.yaml b/ci/deps/circle-310-arm64.yaml index 6dae236a5a2a7..9ac10290c80cf 100644 --- a/ci/deps/circle-310-arm64.yaml +++ b/ci/deps/circle-310-arm64.yaml @@ -9,7 +9,7 @@ dependencies: - cython>=0.29.33 # test dependencies - - pytest>=7.0.0 + - pytest>=7.3.2 - pytest-cov - pytest-xdist>=2.2.0 - pytest-asyncio>=0.17 diff --git a/ci/meta.yaml b/ci/meta.yaml index f02c7eec001fc..09ae0d7253bf7 100644 --- a/ci/meta.yaml +++ b/ci/meta.yaml @@ -62,7 +62,7 @@ test: - python -c "import pandas; pandas.test(extra_args={{ extra_args }})" # [python_impl == "cpython"] requires: - pip - - pytest >=7.0.0 + - pytest >=7.3.2 - pytest-asyncio >=0.17.0 - pytest-xdist >=2.2.0 - pytest-cov diff --git a/ci/test_wheels_windows.bat b/ci/test_wheels_windows.bat index ba6cfef8f2dfb..ad6da74c8faed 100644 --- a/ci/test_wheels_windows.bat +++ b/ci/test_wheels_windows.bat @@ -4,6 +4,6 @@ pd.test(extra_args=['-m not clipboard and single_cpu', '--skip-slow', '--skip-ne python --version pip install pytz six numpy python-dateutil tzdata>=2022.1 -pip install hypothesis>=6.34.2 pytest>=7.0.0 pytest-xdist>=2.2.0 pytest-asyncio>=0.17 +pip install hypothesis>=6.34.2 pytest>=7.3.2 pytest-xdist>=2.2.0 pytest-asyncio>=0.17 pip install --find-links=pandas/dist --no-index pandas python -c "%test_command%" diff --git a/environment.yml b/environment.yml index 3ecc9763e5953..d312c6b161164 100644 --- a/environment.yml +++ b/environment.yml @@ -11,7 +11,7 @@ dependencies: - cython=0.29.33 # test dependencies - - pytest>=7.0.0 + - pytest>=7.3.2 - pytest-cov - pytest-xdist>=2.2.0 - pytest-asyncio>=0.17 diff --git a/pandas/compat/_optional.py b/pandas/compat/_optional.py index 01ac462eeb659..d52b35953b507 100644 --- a/pandas/compat/_optional.py +++ b/pandas/compat/_optional.py @@ -33,7 +33,7 @@ "pymysql": "1.0.2", "pyarrow": "7.0.0", "pyreadstat": "1.1.2", - "pytest": "7.0.0", + "pytest": "7.3.2", "pyxlsb": "1.0.8", "s3fs": "2021.08.0", "scipy": "1.7.1", diff --git a/pyproject.toml b/pyproject.toml index fd974e88fae08..8ea8cfa7c824c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -56,7 +56,7 @@ repository = 'https://github.com/pandas-dev/pandas' matplotlib = "pandas:plotting._matplotlib" [project.optional-dependencies] -test = ['hypothesis>=6.34.2', 'pytest>=7.0.0', 'pytest-xdist>=2.2.0', 'pytest-asyncio>=0.17.0'] +test = ['hypothesis>=6.34.2', 'pytest>=7.3.2', 'pytest-xdist>=2.2.0', 'pytest-asyncio>=0.17.0'] performance = ['bottleneck>=1.3.2', 'numba>=0.53.1', 'numexpr>=2.7.1'] computation = ['scipy>=1.7.1', 'xarray>=0.21.0'] fss = ['fsspec>=2021.07.0'] @@ -101,7 +101,7 @@ all = ['beautifulsoup4>=4.9.3', 'pymysql>=1.0.2', 'PyQt5>=5.15.1', 'pyreadstat>=1.1.2', - 'pytest>=7.0.0', + 'pytest>=7.3.2', 'pytest-xdist>=2.2.0', 'pytest-asyncio>=0.17.0', 'python-snappy>=0.6.0', @@ -143,7 +143,7 @@ parentdir_prefix = "pandas-" skip = "cp36-* cp37-* pp37-* *-manylinux_i686 *_ppc64le *_s390x *-musllinux*" build-verbosity = "3" environment = {LDFLAGS="-Wl,--strip-all" } -test-requires = "hypothesis>=6.34.2 pytest>=7.0.0 pytest-xdist>=2.2.0 pytest-asyncio>=0.17" +test-requires = "hypothesis>=6.34.2 pytest>=7.3.2 pytest-xdist>=2.2.0 pytest-asyncio>=0.17" test-command = "python {project}/ci/test_wheels.py" [tool.cibuildwheel.macos] diff --git a/requirements-dev.txt b/requirements-dev.txt index 2d263a07d53f4..857f434e76657 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -4,7 +4,7 @@ pip versioneer[toml] cython==0.29.33 -pytest>=7.0.0 +pytest>=7.3.2 pytest-cov pytest-xdist>=2.2.0 pytest-asyncio>=0.17 diff --git a/scripts/tests/conftest.py b/scripts/tests/conftest.py deleted file mode 100644 index 496a5195bfc84..0000000000000 --- a/scripts/tests/conftest.py +++ /dev/null @@ -1,6 +0,0 @@ -def pytest_addoption(parser): - parser.addoption( - "--strict-data-files", - action="store_true", - help="Unused. For compat with setup.cfg.", - )