Message330361
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 manipulate the unittest objects a bit to get them to connect smoothly.
`list(test_suite)` is a bit clunky for me, since I'm already copying said list in order to do my manipulation. So I end up with expressions like:
```
my_cases = list(my_custom_generator(list(test_suite)))
```
Certainly not the end of the world, and it works just fine, but it's redundant and I need to do it a lot. I realize that `list(iterator)` is an increasingly common idiom in python 3, but I thought I'd throw this usecase out there for your consideration. |
|
Date |
User |
Action |
Args |
2018-11-23 19:58:22 | lbenezriravin | set | recipients:
+ lbenezriravin, brett.cannon, rbcollins, ezio.melotti, michael.foord |
2018-11-23 19:58:22 | lbenezriravin | set | messageid: <1543003102.64.0.788709270274.issue35281@psf.upfronthosting.co.za> |
2018-11-23 19:58:22 | lbenezriravin | link | issue35281 messages |
2018-11-23 19:58:22 | lbenezriravin | create | |
|