Nosetests are no longer maintained (since 2015!), are completely broken with Python 3.11, and we were already patching it to make it work with prior Python versions. If your package still needs it (sic!), then either port it to use a maintained test framework (pytest preferably) or last rite it.