File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 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 : |
Original file line number Diff line number Diff line change 2222
2323PYTEST_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+
2531echo $PYTEST_CMD
2632sh -c " $PYTEST_CMD "
2733
Original file line number Diff line number Diff line change 22import datetime
33import inspect
44import pydoc
5+ import warnings
56
67import numpy as np
78import 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 ))
You can’t perform that action at this time.
0 commit comments