This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients ZackerySpytz, graingert, matrixise, serhiy.storchaka, vstinner
Date 2019-05-14.16:22:42
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1557850963.13.0.248801888257.issue36829@roundup.psfhosted.org>
In-reply-to
Content
I'm interested to modify regrtest (test runner of the Python test suite) to use sys.unraisablehook(). It would be nice to add an option to display again *all* unraisable exceptions in the test summary, at the end.

I did a similar experimentation for any warnings, so my implementation was fragile because regrtest was hard to extend. That's why I introduced a new TestResult type: to be able to add more fields without breaking all the code. Prevously, a test result was a tuple which was manually unpacked. So adding a new field could break code which wasn't updated to handle new fields.
History
Date User Action Args
2019-05-14 16:22:43vstinnersetrecipients: + vstinner, serhiy.storchaka, graingert, matrixise, ZackerySpytz
2019-05-14 16:22:43vstinnersetmessageid: <1557850963.13.0.248801888257.issue36829@roundup.psfhosted.org>
2019-05-14 16:22:43vstinnerlinkissue36829 messages
2019-05-14 16:22:42vstinnercreate