Skip to content

Commit b631313

Browse files
authored
PYTHON-2737 Run Load Balancer test suite with Python 3.4 (#647)
Switch LB testing to amazon1-2018.
1 parent 9e5ab1b commit b631313

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.evergreen/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2730,10 +2730,10 @@ buildvariants:
27302730

27312731
- matrix_name: "load-balancer"
27322732
matrix_spec:
2733-
platform: ubuntu-18.04
2733+
platform: awslinux
27342734
mongodb-version: ["5.0", "latest"]
27352735
auth-ssl: "*"
2736-
python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "pypy", "pypy3.7"]
2736+
python-version: ["2.7", "3.4", "3.5", "3.6", "3.7", "3.8", "3.9", "pypy", "pypy3.5", "pypy3.7"]
27372737
loadbalancer: "*"
27382738
display_name: "Load Balancer ${platform} ${python-version} ${mongodb-version} ${auth-ssl}"
27392739
tasks:

.evergreen/run-tests.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,8 @@ if [ -z "$GREEN_FRAMEWORK" ]; then
226226
$PYTHON -c "from bson import _cbson; from pymongo import _cmessage"
227227
fi
228228
if [ -n "$TEST_LOADBALANCER" ]; then
229-
PY_MAJOR=$($PYTHON -c "import sys; sys.stdout.write(str(sys.version_info[0]))")
230-
if [ "$PY_MAJOR" = "2" ]; then
229+
IS_PRE_35=$(python -c "import sys; sys.stdout.write('1' if sys.version_info < (3, 5) else '0')")
230+
if [ "$IS_PRE_35" = "1" ]; then
231231
RUNNER="unittest"
232232
RUNNER_ARGS=""
233233
else

0 commit comments

Comments
 (0)