Skip to content

Commit 21cfd13

Browse files
committed
PYTHON-5480 Update Python 3.9-specific tests to use Python 3.10
1 parent 448a494 commit 21cfd13

File tree

9 files changed

+462
-456
lines changed

9 files changed

+462
-456
lines changed

.evergreen/generated_configs/tasks.yml

Lines changed: 435 additions & 435 deletions
Large diffs are not rendered by default.

.evergreen/generated_configs/variants.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -153,17 +153,17 @@ buildvariants:
153153
- rhel87-small
154154

155155
# Disable test commands tests
156-
- name: disable-test-commands-rhel8-python3.9
156+
- name: disable-test-commands-rhel8-python3.10
157157
tasks:
158158
- name: .test-standard .server-latest
159-
display_name: Disable test commands RHEL8 Python3.9
159+
display_name: Disable test commands RHEL8 Python3.10
160160
run_on:
161161
- rhel87-small
162162
expansions:
163163
AUTH: auth
164164
SSL: ssl
165165
DISABLE_TEST_COMMANDS: "1"
166-
PYTHON_BINARY: /opt/python/3.9/bin/python3
166+
PYTHON_BINARY: /opt/python/3.10/bin/python3
167167

168168
# Doctests tests
169169
- name: doctests-rhel8
@@ -500,14 +500,14 @@ buildvariants:
500500
SUB_TEST_NAME: pyopenssl
501501

502502
# Search index tests
503-
- name: search-index-helpers-rhel8-python3.9
503+
- name: search-index-helpers-rhel8-python3.10
504504
tasks:
505505
- name: .search_index
506-
display_name: Search Index Helpers RHEL8 Python3.9
506+
display_name: Search Index Helpers RHEL8 Python3.10
507507
run_on:
508508
- rhel87-small
509509
expansions:
510-
PYTHON_BINARY: /opt/python/3.9/bin/python3
510+
PYTHON_BINARY: /opt/python/3.10/bin/python3
511511

512512
# Server version tests
513513
- name: mongodb-v4.2

.evergreen/run-mongodb-aws-ecs-test.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ fi
2020
set -o xtrace
2121

2222
# Install python with pip.
23-
PYTHON_VER="python3.9"
23+
PYTHON_VER="python3.10"
2424
apt-get -qq update < /dev/null > /dev/null
2525
apt-get -qq install $PYTHON_VER $PYTHON_VER-venv build-essential $PYTHON_VER-dev -y < /dev/null > /dev/null
2626

.evergreen/scripts/generate_config.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -485,11 +485,11 @@ def create_alternative_hosts_variants():
485485
variants.append(
486486
create_variant(
487487
[".test-no-toolchain"],
488-
get_variant_name("OpenSSL 1.0.2", host, python=CPYTHONS[0], version=version),
488+
get_variant_name("OpenSSL 1.0.2", host, python="3.9", version=version),
489489
host=host,
490-
python=CPYTHONS[0],
490+
python="3.9",
491491
batchtime=batchtime,
492-
expansions=dict(VERSION=version, PYTHON_VERSION=CPYTHONS[0]),
492+
expansions=dict(VERSION=version, PYTHON_VERSION="3.9"),
493493
)
494494
)
495495

.evergreen/scripts/generate_config_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
##############
2323

2424
ALL_VERSIONS = ["4.2", "4.4", "5.0", "6.0", "7.0", "8.0", "rapid", "latest"]
25-
CPYTHONS = ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
25+
CPYTHONS = ["3.10", "3.9", "3.11", "3.12", "3.13", "3.14"]
2626
PYPYS = ["pypy3.10"]
2727
ALL_PYTHONS = CPYTHONS + PYPYS
2828
MIN_MAX_PYTHON = [CPYTHONS[0], CPYTHONS[-1]]

test/asynchronous/test_client.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2059,7 +2059,7 @@ async def _test_handshake(self, env_vars, expected_env):
20592059
async def test_handshake_01_aws(self):
20602060
await self._test_handshake(
20612061
{
2062-
"AWS_EXECUTION_ENV": "AWS_Lambda_python3.9",
2062+
"AWS_EXECUTION_ENV": "AWS_Lambda_python3.10",
20632063
"AWS_REGION": "us-east-2",
20642064
"AWS_LAMBDA_FUNCTION_MEMORY_SIZE": "1024",
20652065
},
@@ -2097,7 +2097,7 @@ async def test_handshake_04_vercel(self):
20972097

20982098
async def test_handshake_05_multiple(self):
20992099
await self._test_handshake(
2100-
{"AWS_EXECUTION_ENV": "AWS_Lambda_python3.9", "FUNCTIONS_WORKER_RUNTIME": "python"},
2100+
{"AWS_EXECUTION_ENV": "AWS_Lambda_python3.10", "FUNCTIONS_WORKER_RUNTIME": "python"},
21012101
None,
21022102
)
21032103
# Extra cases for other combos.
@@ -2109,13 +2109,16 @@ async def test_handshake_05_multiple(self):
21092109

21102110
async def test_handshake_06_region_too_long(self):
21112111
await self._test_handshake(
2112-
{"AWS_EXECUTION_ENV": "AWS_Lambda_python3.9", "AWS_REGION": "a" * 512},
2112+
{"AWS_EXECUTION_ENV": "AWS_Lambda_python3.10", "AWS_REGION": "a" * 512},
21132113
{"name": "aws.lambda"},
21142114
)
21152115

21162116
async def test_handshake_07_memory_invalid_int(self):
21172117
await self._test_handshake(
2118-
{"AWS_EXECUTION_ENV": "AWS_Lambda_python3.9", "AWS_LAMBDA_FUNCTION_MEMORY_SIZE": "big"},
2118+
{
2119+
"AWS_EXECUTION_ENV": "AWS_Lambda_python3.10",
2120+
"AWS_LAMBDA_FUNCTION_MEMORY_SIZE": "big",
2121+
},
21192122
{"name": "aws.lambda"},
21202123
)
21212124

test/asynchronous/test_discovery_and_monitoring.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ async def test_rtt_connection_is_disabled_poll(self):
485485

486486
async def test_rtt_connection_is_disabled_auto(self):
487487
envs = [
488-
{"AWS_EXECUTION_ENV": "AWS_Lambda_python3.9"},
488+
{"AWS_EXECUTION_ENV": "AWS_Lambda_python3.10"},
489489
{"FUNCTIONS_WORKER_RUNTIME": "python"},
490490
{"K_SERVICE": "gcpservicename"},
491491
{"FUNCTION_NAME": "gcpfunctionname"},

test/test_client.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2016,7 +2016,7 @@ def _test_handshake(self, env_vars, expected_env):
20162016
def test_handshake_01_aws(self):
20172017
self._test_handshake(
20182018
{
2019-
"AWS_EXECUTION_ENV": "AWS_Lambda_python3.9",
2019+
"AWS_EXECUTION_ENV": "AWS_Lambda_python3.10",
20202020
"AWS_REGION": "us-east-2",
20212021
"AWS_LAMBDA_FUNCTION_MEMORY_SIZE": "1024",
20222022
},
@@ -2054,7 +2054,7 @@ def test_handshake_04_vercel(self):
20542054

20552055
def test_handshake_05_multiple(self):
20562056
self._test_handshake(
2057-
{"AWS_EXECUTION_ENV": "AWS_Lambda_python3.9", "FUNCTIONS_WORKER_RUNTIME": "python"},
2057+
{"AWS_EXECUTION_ENV": "AWS_Lambda_python3.10", "FUNCTIONS_WORKER_RUNTIME": "python"},
20582058
None,
20592059
)
20602060
# Extra cases for other combos.
@@ -2066,13 +2066,16 @@ def test_handshake_05_multiple(self):
20662066

20672067
def test_handshake_06_region_too_long(self):
20682068
self._test_handshake(
2069-
{"AWS_EXECUTION_ENV": "AWS_Lambda_python3.9", "AWS_REGION": "a" * 512},
2069+
{"AWS_EXECUTION_ENV": "AWS_Lambda_python3.10", "AWS_REGION": "a" * 512},
20702070
{"name": "aws.lambda"},
20712071
)
20722072

20732073
def test_handshake_07_memory_invalid_int(self):
20742074
self._test_handshake(
2075-
{"AWS_EXECUTION_ENV": "AWS_Lambda_python3.9", "AWS_LAMBDA_FUNCTION_MEMORY_SIZE": "big"},
2075+
{
2076+
"AWS_EXECUTION_ENV": "AWS_Lambda_python3.10",
2077+
"AWS_LAMBDA_FUNCTION_MEMORY_SIZE": "big",
2078+
},
20762079
{"name": "aws.lambda"},
20772080
)
20782081

test/test_discovery_and_monitoring.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ def test_rtt_connection_is_disabled_poll(self):
483483

484484
def test_rtt_connection_is_disabled_auto(self):
485485
envs = [
486-
{"AWS_EXECUTION_ENV": "AWS_Lambda_python3.9"},
486+
{"AWS_EXECUTION_ENV": "AWS_Lambda_python3.10"},
487487
{"FUNCTIONS_WORKER_RUNTIME": "python"},
488488
{"K_SERVICE": "gcpservicename"},
489489
{"FUNCTION_NAME": "gcpfunctionname"},

0 commit comments

Comments
 (0)