-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Please port to Python3.12 #28194
Copy link
Copy link
Closed
Labels
Auto-ResolveAuto resolve by botAuto resolve by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Milestone
Metadata
Metadata
Assignees
Labels
Auto-ResolveAuto resolve by botAuto resolve by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as thatThe issue doesn't require a change to the product in order to be resolved. Most issues start as that
Describe the bug
The test suite does not pass when using Python3.12 as it is reported in a Debian bug report. It results in
While fixing the
assertNotEqualscan be easily fixed with this patchassertDictContainsSubsetis not supported any more as you can read in the Python3.12 documentation.(BTW, the patch is against the Debian packaged version 2.50.0 so not the latest release but it should be pretty easy to adapt sind the replacement is simple.)
Related command
Simply run the test suite under Python3.12.
Errors
Issue script & Debug output
See above
Expected behavior
The unittest should be passed when using Python3.12.
Environment Summary
azure-cli 2.50.0
Additional context
No response