Serhiy Storchaka <storchaka+cpyt...@gmail.com> added the comment:

I think the OP means that test details (test description, traceback, captured 
output) are printed for ERROR and FAIL in TextTestResult.printErrors(). Other 
possible results besides error and failure are success, skipped, expected 
failure and unexpected success. Success, skipped and expected failure are 
expected, they do not cause total failure, but unexpected success is different. 
Result.wasSuccessful() returns False if there are any errors, failures or 
unexpected successes. But unlike errors and failures we do not have any details 
about unexpected successes. It looks like oversight to me.

Yes, there are no traceback for unexpected success, but at least we can output 
the test description and captured output.

----------
assignee:  -> serhiy.storchaka
nosy: +ezio.melotti, michael.foord, serhiy.storchaka
resolution: out of date -> 
status: pending -> open
versions: +Python 3.11 -Python 3.5

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue22815>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to