[issue1244929] hide tests from TestProgram
Amaury Forgeot d'Arc
report at bugs.python.org
Tue Feb 17 08:41:31 CET 2009
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
No, the feature is not present in current unittest; the patch is still
applicable. I'm concerned with backward compatibility, though.
To achieve the same result, the common usage is a mixin class.
See for example Lib/test/test_codecencoding_cn.py:
class BaseTest:
... test functions, setup, teardown ...
class TestBlah(BaseTest, unittest.TestCase):
... subclass here ...
This is not too bad. I suggest to close this issue as "won't fix".
----------
nosy: +amaury.forgeotdarc
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue1244929>
_______________________________________
More information about the Python-bugs-list
mailing list