[issue17037] Use a test.support helper to wrap the PEP 399 boilerplate

Eric Snow report at bugs.python.org
Mon Jan 28 21:46:25 CET 2013


Eric Snow added the comment:

+1 to where Brett's taking this.  I really like having the PEP399Tests class encapsulating the various boilerplate parts, with some of them as methods, rather than trying to pack them all into one all-powerful decorator.

It would be worth raising an exception in ``pep399_tests.create_test_cases(ExampleTest)`` if ExampleTest inherits from unittest.TestCase.  This is a simple thing that would help people get it right.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17037>
_______________________________________


More information about the Python-bugs-list mailing list