Skip to content

Commit 9360aac

Browse files
committed
add pytest cov for warning filter, fix filterwarnings
1 parent 18c413f commit 9360aac

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/unit-tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ jobs:
253253
. ~/virtualenvs/pandas-dev/bin/activate
254254
python -m pip install --no-cache-dir -U pip wheel meson[ninja]==1.2.1 meson-python==0.13.1
255255
python -m pip install numpy -Csetup-args="-Dallow-noblas=true"
256-
python -m pip install --no-cache-dir versioneer[toml] cython python-dateutil pytest>=8.3.4 pytest-xdist>=3.6.1 hypothesis>=6.116.0
256+
python -m pip install --no-cache-dir versioneer[toml] cython python-dateutil pytest>=8.3.4 pytest-xdist>=3.6.1 hypothesis>=6.116.0 pytest-cov
257257
python -m pip install --no-cache-dir --no-build-isolation -e . -Csetup-args="--werror"
258258
python -m pip list --no-cache-dir
259259
PANDAS_CI=1 python -m pytest -m 'not slow and not network and not clipboard and not single_cpu' pandas --junitxml=test-data.xml
@@ -292,7 +292,7 @@ jobs:
292292
/opt/python/cp313-cp313/bin/python -m venv ~/virtualenvs/pandas-dev
293293
. ~/virtualenvs/pandas-dev/bin/activate
294294
python -m pip install --no-cache-dir -U pip wheel meson-python==0.13.1 meson[ninja]==1.2.1
295-
python -m pip install --no-cache-dir versioneer[toml] cython numpy python-dateutil pytest>=8.3.4 pytest-xdist>=3.6.1 hypothesis>=6.116.0
295+
python -m pip install --no-cache-dir versioneer[toml] cython numpy python-dateutil pytest>=8.3.4 pytest-xdist>=3.6.1 hypothesis>=6.116.0 pytest-cov
296296
python -m pip install --no-cache-dir --no-build-isolation -e . -Csetup-args="--werror"
297297
python -m pip list --no-cache-dir
298298
@@ -432,7 +432,7 @@ jobs:
432432
PANDAS_CI: 1
433433
run: |
434434
source .venv-pyodide/bin/activate
435-
pip install pytest hypothesis
435+
pip install pytest hypothesis pytest-cov
436436
# do not import pandas from the checked out repo
437437
cd ..
438438
python -c 'import pandas as pd; pd.test(extra_args=["-m not clipboard and not single_cpu and not slow and not network and not db"])'

pandas/tests/reductions/test_reductions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ def test_var_masked_array(self, ddof, exp):
782782
assert result == result_numpy_dtype
783783
assert result == exp
784784

785-
@pytest.mark.filterwarning(
785+
@pytest.mark.filterwarnings(
786786
"ignore:Casting complex values to real discards:numpy.exceptions.ComplexWarning"
787787
)
788788
def test_var_complex_array(self):

0 commit comments

Comments
 (0)