[issue7897] Support parametrized tests in unittest

Michael Foord report at bugs.python.org
Wed Jul 20 16:28:35 CEST 2011

Michael Foord <michael at voidspace.org.uk> added the comment:

So if we do import time *or* test load time parameterisation then we can do separate failure reporting. We may still want to improve "test selection" for parameterised tests.

There are use cases for run time parameterisation (for example generating tests from a database that is only available during the test run was one use case someone has that can't be met by early parameterisation).

If we do run time parameterisation then I think we can only maintain compatibility with existing uses of test suites by having a single test case instance per parameterised test, and single combined failure report.

I would prefer *not* to add run time parameterisation.


Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list