Adjust tests for a last minute Python 3.11 change in the traceback format
See https://github.com/python/cpython/issues/93883 and https://github.com/python/cpython/pull/93994
--HG-- branch : python3.11.0b4
See https://github.com/python/cpython/issues/93883 and https://github.com/python/cpython/pull/93994
--HG-- branch : python3.11.0b4