Open jpellerin opened 12 years ago
For what it's worth, I had this problem while trying to set parameters for my progress bar in nose-progressive. I ended up monkeypatching loadTestsFromName in prepareTestLoader() to capture the parameters that led to the creation of the generator. I could then create a duplicate generator which I could exhaust with impunity.
Google Code Info: Author: grinche...@gmail.com Created On: 2011-02-21T21:49:23.000Z
What steps will reproduce the problem?
What is the expected output? What do you see instead?
I expect that I could run tests from context suite. Instead I got empty suite. It happens because nose.case.FunctionTestCase call countTestCases() from unittest.TestCase. And unittest.TestCase call field _tests each time. But FunctionTestCase can produce tests from generator only once.
What version of the product are you using? On what operating system? nosetests version 0.11.4
Please provide any additional information below.
Google Code Info: Issue #: 383 Author: Tuzov...@gmail.com Created On: 2010-12-06T16:17:25.000Z Closed On: