This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author lbenezriravin
Recipients brett.cannon, ezio.melotti, lbenezriravin, michael.foord, rbcollins
Date 2018-11-23.19:58:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1543003102.64.0.788709270274.issue35281@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2018-11-23 19:58:22lbenezriravinsetrecipients: + lbenezriravin, brett.cannon, rbcollins, ezio.melotti, michael.foord
2018-11-23 19:58:22lbenezriravinsetmessageid: <1543003102.64.0.788709270274.issue35281@psf.upfronthosting.co.za>
2018-11-23 19:58:22lbenezriravinlinkissue35281 messages
2018-11-23 19:58:22lbenezriravincreate