New submission from Xavier Dollé <[email protected]>:
addSubTest from TestResult is appending elements to failures and errors without
using addFailure or addError, making the extend of this class more difficult.
suggestion:
def addSubTest(self, test, subtest, err):
...
if issubclass(err[0], test.failureException):
self.addFailure(subtest, err)
else:
self.addError(subtest, err)
The suggested change would make it more concise and easier to extend.
----------
components: Tests
messages: 348728
nosy: Xavier Dollé
priority: normal
severity: normal
status: open
title: addSubtest not calling addFailure and addError
type: enhancement
versions: Python 3.9
_______________________________________
Python tracker <[email protected]>
<https://bugs.python.org/issue37719>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com