nose-devs / nose

nose is nicer testing for python
http://readthedocs.org/docs/nose/en/latest/
1.36k stars 397 forks source link

python 3.12 compilation fails on "except" syntax #1129

Open nkadel opened 2 months ago

nkadel commented 2 months ago

Compilation of nose 1.3.7 on fails on python 3.12 due to changes in syntax of "except" statements. See: https://stackoverflow.com/questions/70648404/syntaxerror-multiple-exception-types-must-be-parenthesized

All statements with this syntax:

except  NameError, nameerror:

Need to be reset as:

except NameError(nameerror):