Skip to content

Commit

Permalink
CI: Troubleshoot PY38 windows build (#37455)
Browse files Browse the repository at this point in the history
  • Loading branch information
jbrockmendel authored Oct 31, 2020
1 parent 22799d7 commit 5a66348
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ci/azure/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
py38_np18:
ENV_FILE: ci/deps/azure-windows-38.yaml
CONDA_PY: "38"
PATTERN: "not slow and not network"
PATTERN: "not slow and not network and not high_memory"

steps:
- powershell: |
Expand Down
6 changes: 6 additions & 0 deletions ci/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ fi

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

if [[ $(uname) != "Linux" && $(uname) != "Darwin" ]]; then
# GH#37455 windows py38 build appears to be running out of memory
# skip collection of window tests
PYTEST_CMD="$PYTEST_CMD --ignore=pandas/tests/window/"
fi

echo $PYTEST_CMD
sh -c "$PYTEST_CMD"

Expand Down
7 changes: 6 additions & 1 deletion pandas/tests/frame/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import datetime
import inspect
import pydoc
import warnings

import numpy as np
import pytest
Expand Down Expand Up @@ -561,9 +562,13 @@ def test_constructor_expanddim_lookup(self):
# raise NotImplementedError
df = DataFrame()

with tm.assert_produces_warning(FutureWarning, check_stacklevel=False):
with warnings.catch_warnings(record=True) as wrn:
# _AXIS_NUMBERS, _AXIS_NAMES lookups
inspect.getmembers(df)

# some versions give FutureWarning, others DeprecationWarning
assert len(wrn)
assert any(x.category in [FutureWarning, DeprecationWarning] for x in wrn)

with pytest.raises(NotImplementedError, match="Not supported for DataFrames!"):
df._constructor_expanddim(np.arange(27).reshape(3, 3, 3))

0 comments on commit 5a66348

Please sign in to comment.