File tree 3 files changed +13
-2
lines changed
3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change 16
16
py38_np18 :
17
17
ENV_FILE : ci/deps/azure-windows-38.yaml
18
18
CONDA_PY : " 38"
19
- PATTERN : " not slow and not network"
19
+ PATTERN : " not slow and not network and not high_memory "
20
20
21
21
steps :
22
22
- powershell : |
Original file line number Diff line number Diff line change 22
22
23
23
PYTEST_CMD=" ${XVFB} pytest -m \" $PATTERN \" -n $PYTEST_WORKERS --dist=loadfile -s --strict --durations=30 --junitxml=test-data.xml $TEST_ARGS $COVERAGE pandas"
24
24
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
+
25
31
echo $PYTEST_CMD
26
32
sh -c " $PYTEST_CMD "
27
33
Original file line number Diff line number Diff line change 2
2
import datetime
3
3
import inspect
4
4
import pydoc
5
+ import warnings
5
6
6
7
import numpy as np
7
8
import pytest
@@ -561,9 +562,13 @@ def test_constructor_expanddim_lookup(self):
561
562
# raise NotImplementedError
562
563
df = DataFrame ()
563
564
564
- with tm . assert_produces_warning ( FutureWarning , check_stacklevel = False ) :
565
+ with warnings . catch_warnings ( record = True ) as wrn :
565
566
# _AXIS_NUMBERS, _AXIS_NAMES lookups
566
567
inspect .getmembers (df )
567
568
569
+ # some versions give FutureWarning, others DeprecationWarning
570
+ assert len (wrn )
571
+ assert any (x .category in [FutureWarning , DeprecationWarning ] for x in wrn )
572
+
568
573
with pytest .raises (NotImplementedError , match = "Not supported for DataFrames!" ):
569
574
df ._constructor_expanddim (np .arange (27 ).reshape (3 , 3 , 3 ))
You can’t perform that action at this time.
0 commit comments