Fix tests for python 3.11 (patch included)
I don't have a fork button and cannot create new projects, so we'll have to do this old-school.
It seems like the final release of python 3.11 changed the exception format, so some of the tests fail again. Not sure how you want to handle the fact that some folks might still be using rcX, imo it would be acceptable to tell them to upgrade, but that's obviously your call.
Downstream issue: https://github.com/NixOS/nixpkgs/pull/198077