[New-bugs-announce] [issue35281] Allow access to unittest.TestSuite tests

Lihu report at bugs.python.org
Mon Nov 19 14:25:49 EST 2018


New submission from Lihu <lihu at starry.com>:

I would like to have access to the list of tests in a TestSuite object.
Currently there are two ways of doing this: I can access the protected attribute `_tests`, or I can iterate over the TestSuite and re-create data that I already have. The former option isn't part of the public API and makes mypy mad, and the latter seems redundant. Could we get a public property or getter for the internal test list (or a more appropriate implementation if necessary)?

----------
components: Library (Lib)
messages: 330111
nosy: lbenezriravin
priority: normal
severity: normal
status: open
title: Allow access to unittest.TestSuite tests
type: enhancement
versions: Python 3.7

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue35281>
_______________________________________


More information about the New-bugs-announce mailing list