Skip to content

Commit 1769c1f

Browse files
committed
Limit usage of xdist grouping to Python 3.11
1 parent dc401b3 commit 1769c1f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

azure-pipelines.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -147,9 +147,14 @@ stages:
147147
fi
148148
echo "##vso[task.setvariable variable=VS_COVERAGE_TOOL]$TOOL"
149149
150+
if [[ $(python.version) == 3.11 ]]; then
151+
# when removing this, also remove
152+
# @pytest.mark.xdist_group(name="subprocess") from tests
153+
DIST_LOAD_GROUP=--dist=loadgroup
154+
fi
155+
echo $DIST_LOAD_GROUP
150156
PYTHONFAULTHANDLER=1 pytest -rfEsXR -n 2 \
151-
--maxfail=50 --timeout=300 --durations=25 \
152-
--dist=loadgroup \
157+
--maxfail=50 --timeout=300 --durations=25 $DIST_LOAD_GROUP \
153158
--junitxml=junit/test-results.xml --cov-report=xml --cov=lib
154159
155160
if [[ $VS_VER == 2022 ]]; then

0 commit comments

Comments
 (0)