[issue35281] Allow access to unittest.TestSuite tests

2018-11-26 Thread Brett Cannon
Brett Cannon added the comment: Gotcha, thanks for the clarification! Unfortunately I don't think we will be able to accommodate your feature request. It's duplicating an API to simply save calling list() which is the idiomatic way to convert an iterable into a concrete sequence. And

[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 to

[issue35281] Allow access to unittest.TestSuite tests

2018-11-20 Thread Brett Cannon
Brett Cannon added the comment: I don't quite follow what you're after as it sounds the same as calling `list(test_suite)`. Am I missing something or are you just trying to avoid the list creation? -- nosy: +brett.cannon ___ Python tracker

[issue35281] Allow access to unittest.TestSuite tests

2018-11-19 Thread Lihu
Change by Lihu : -- nosy: +ezio.melotti, michael.foord, rbcollins ___ Python tracker ___ ___ Python-bugs-list mailing list

[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