Skip to content

Commit 1b5ed05

Browse files
jbrockmendelKevin D Smith
authored and
Kevin D Smith
committed
CI: Troubleshoot PY38 windows build (pandas-dev#37455)
1 parent ff1375e commit 1b5ed05

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

ci/azure/windows.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
py38_np18:
1717
ENV_FILE: ci/deps/azure-windows-38.yaml
1818
CONDA_PY: "38"
19-
PATTERN: "not slow and not network"
19+
PATTERN: "not slow and not network and not high_memory"
2020

2121
steps:
2222
- powershell: |

ci/run_tests.sh

+6
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ fi
2222

2323
PYTEST_CMD="${XVFB}pytest -m \"$PATTERN\" -n $PYTEST_WORKERS --dist=loadfile -s --strict --durations=30 --junitxml=test-data.xml $TEST_ARGS $COVERAGE pandas"
2424

25+
if [[ $(uname) != "Linux" && $(uname) != "Darwin" ]]; then
26+
# GH#37455 windows py38 build appears to be running out of memory
27+
# skip collection of window tests
28+
PYTEST_CMD="$PYTEST_CMD --ignore=pandas/tests/window/"
29+
fi
30+
2531
echo $PYTEST_CMD
2632
sh -c "$PYTEST_CMD"
2733

pandas/tests/frame/test_api.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import datetime
33
import inspect
44
import pydoc
5+
import warnings
56

67
import numpy as np
78
import pytest
@@ -561,9 +562,13 @@ def test_constructor_expanddim_lookup(self):
561562
# raise NotImplementedError
562563
df = DataFrame()
563564

564-
with tm.assert_produces_warning(FutureWarning, check_stacklevel=False):
565+
with warnings.catch_warnings(record=True) as wrn:
565566
# _AXIS_NUMBERS, _AXIS_NAMES lookups
566567
inspect.getmembers(df)
567568

569+
# some versions give FutureWarning, others DeprecationWarning
570+
assert len(wrn)
571+
assert any(x.category in [FutureWarning, DeprecationWarning] for x in wrn)
572+
568573
with pytest.raises(NotImplementedError, match="Not supported for DataFrames!"):
569574
df._constructor_expanddim(np.arange(27).reshape(3, 3, 3))

0 commit comments

Comments
 (0)