[issue35281] Allow access to unittest.TestSuite tests

2018-11-23 Thread Lihu
Lihu added the comment: Sorry, I guess some context might be helpful. I'm writing a program that links unittest-based tests with a third-party test tracking/reporting system. Said third-party software has a concept of test suites/cases that doesn't align 1:1 with unittest, so I need

[issue35281] Allow access to unittest.TestSuite tests

2018-11-19 Thread Lihu
Change by Lihu : -- nosy: +ezio.melotti, michael.foord, rbcollins ___ Python tracker <https://bugs.python.org/issue35281> ___ ___ Python-bugs-list mailin

[issue35281] Allow access to unittest.TestSuite tests

2018-11-19 Thread Lihu
New submission from Lihu : 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