From 51fd05e76b378f0ab463c71fa03bcf1b16eddc78 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Thu, 6 May 2021 15:15:09 -0700 Subject: [PATCH] Add support for testing with Python 3.10. --- .azure-pipelines/azure-pipelines.yml | 1 + changelogs/fragments/ansible-test-python-3.10.yml | 2 ++ test/lib/ansible_test/_data/completion/docker.txt | 4 ++-- test/lib/ansible_test/_internal/util.py | 1 + 4 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 changelogs/fragments/ansible-test-python-3.10.yml diff --git a/.azure-pipelines/azure-pipelines.yml b/.azure-pipelines/azure-pipelines.yml index 3f770d334fb..c8bcca6b574 100644 --- a/.azure-pipelines/azure-pipelines.yml +++ b/.azure-pipelines/azure-pipelines.yml @@ -69,6 +69,7 @@ stages: - test: 3.7 - test: 3.8 - test: 3.9 + - test: '3.10' - stage: Windows dependsOn: [] jobs: diff --git a/changelogs/fragments/ansible-test-python-3.10.yml b/changelogs/fragments/ansible-test-python-3.10.yml new file mode 100644 index 00000000000..5e46e84bb12 --- /dev/null +++ b/changelogs/fragments/ansible-test-python-3.10.yml @@ -0,0 +1,2 @@ +minor_changes: + - ansible-test - Add support for testing with Python 3.10. diff --git a/test/lib/ansible_test/_data/completion/docker.txt b/test/lib/ansible_test/_data/completion/docker.txt index c94e6bbe82b..aeb6cdaa385 100644 --- a/test/lib/ansible_test/_data/completion/docker.txt +++ b/test/lib/ansible_test/_data/completion/docker.txt @@ -1,5 +1,5 @@ -default name=quay.io/ansible/default-test-container:3.4.0 python=3.9,2.6,2.7,3.5,3.6,3.7,3.8 seccomp=unconfined context=collection -default name=quay.io/ansible/ansible-core-test-container:3.4.0 python=3.9,2.6,2.7,3.5,3.6,3.7,3.8 seccomp=unconfined context=ansible-core +default name=quay.io/ansible/default-test-container:3.5.0 python=3.9,2.6,2.7,3.5,3.6,3.7,3.8,3.10 seccomp=unconfined context=collection +default name=quay.io/ansible/ansible-core-test-container:3.5.1 python=3.9,2.6,2.7,3.5,3.6,3.7,3.8,3.10 seccomp=unconfined context=ansible-core alpine3 name=quay.io/ansible/alpine3-test-container:2.0.2 python=3.8 centos6 name=quay.io/ansible/centos6-test-container:2.0.2 python=2.6 seccomp=unconfined centos7 name=quay.io/ansible/centos7-test-container:2.0.2 python=2.7 seccomp=unconfined diff --git a/test/lib/ansible_test/_internal/util.py b/test/lib/ansible_test/_internal/util.py index 16ba2c2f97a..4b34f56375a 100644 --- a/test/lib/ansible_test/_internal/util.py +++ b/test/lib/ansible_test/_internal/util.py @@ -123,6 +123,7 @@ SUPPORTED_PYTHON_VERSIONS = ( '3.7', '3.8', '3.9', + '3.10', )