Refactoring
--> 3c260af
--> This improves compatibility and fixes issues with Python 3.11 and 3.12.
--> This resolves #1864
--> This includes an improvement to stack traces in the basic_test_info.txt file.
--> Some of this is related to changes in unittest between Python 3.10 and 3.11.