{CI} Use Python 3.10 as the default and disable Python 3.9 tests #20287
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Python 3.9.8 introduced an unexpected breaking change (python/cpython#28420) that breaks Azure CLI:
According to https://bugs.python.org/issue45235, this change will be reverted on 3.9 and withdrawn from future releases for other version like 3.7, 3.8, 3.10.
Azure Pipeline now only has Python 3.9.8, but not old versions like 3.9.7:
Even if Python releases 3.9.9 which reverts this change, it will take Azure Pipeline weeks to take that version.
To unblock our development and PRs from being merged, we have to use Python 3.10 as the default (thanks to the timely support for Python 3.10 (#19857)) and disable Python 3.9 tests.