Skip to content

Commit d0cf9b5

Browse files
authored
CI: Don't run PANDAS_DATA_MANAGER=array test for downstream tests (pandas-dev#46253)
1 parent 5544b6d commit d0cf9b5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ci/run_tests.sh

+3-2
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ fi
3333
echo $PYTEST_CMD
3434
sh -c "$PYTEST_CMD"
3535

36-
if [[ "$PANDAS_DATA_MANAGER" != "array" ]]; then
36+
if [[ "$PANDAS_DATA_MANAGER" != "array" && "$PYTEST_TARGET" == "pandas" ]]; then
3737
# The ArrayManager tests should have already been run by PYTEST_CMD if PANDAS_DATA_MANAGER was already set to array
38-
PYTEST_AM_CMD="PANDAS_DATA_MANAGER=array pytest -n $PYTEST_WORKERS --dist=loadfile $TEST_ARGS $COVERAGE pandas"
38+
# If we're targeting specific files, e.g. test_downstream.py, don't run.
39+
PYTEST_AM_CMD="PANDAS_DATA_MANAGER=array pytest -n $PYTEST_WORKERS --dist=loadfile $TEST_ARGS $COVERAGE pandas"
3940

4041
if [[ "$PATTERN" ]]; then
4142
PYTEST_AM_CMD="$PYTEST_AM_CMD -m \"$PATTERN and arraymanager\""

0 commit comments

Comments
 (0)