This looks great, just minor comments. Do you have any average numbers on how much time it takes to run the tests with and without these changes?
Based on the numbers of the last few GitHub actions runs: ~20 sec with pytest to run the tests, ~36 sec on nose with Python 3.11, however also ~20 sec on current master, without any Python changes, with nose.
Based on the numbers of the last few GitHub actions runs: ~20 sec with pytest to run the tests, ~36 sec on nose with Python 3.11, however also ~20 sec on current master, without any Python changes, with nose.