Fix tests for Python 3.10.1 (2) (#11756)
Followup to #11752. The syntax error changed between 3.10.0 and 3.10.1.
https://bugs.python.org/issue46004
I missed a few the first time around unfortunately.
https://bugs.python.org/issue46004
Instead of duplicating the original output, I chose to extend the test syntax
introduced with #10404 and added support for == version checks.