nose-devs/nose — Issue #122: problem with countTestCases() if suite contains generator tests
Author: jpellerin
Created: 2011-12-14 15:59:55+00:00
State: open

What steps will reproduce the problem?
1. Create ContextSuite
2. Add test case from generator
3. call countTestCases()
4. call run()

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: