[New-bugs-announce] [issue19597] Add decorator for tests not yet implemented

Zachary Ware report at bugs.python.org
Thu Nov 14 23:33:12 CET 2013


New submission from Zachary Ware:

Some tests in the test suite are not implemented for one reason or another, and most of these are defined simply as "def test_thats_not_implemented(self): pass", possibly with a comment meant to be a reminder to implement it.  This patch adds a decorator to test.support which turns the non-test into an expected failure with a docstring.  This means that when run in verbose mode, instead of showing:

"""
test_thats_not_implemented (test.test_sometest.TestClass) ... ok
"""

it will instead show:

"""
Not Implemented: TestClass.test_thats_not_implemented ... expected failure
"""

This should make it more obvious that such a test needs some work.  The patch also applies the decorator in test_minidom as an example; there are a few other places that could use it as well.

----------
components: Tests
files: support.not_implemented.diff
keywords: patch
messages: 202907
nosy: ezio.melotti, michael.foord, pitrou, serhiy.storchaka, zach.ware
priority: normal
severity: normal
stage: patch review
status: open
title: Add decorator for tests not yet implemented
type: enhancement
versions: Python 3.3, Python 3.4
Added file: http://bugs.python.org/file32626/support.not_implemented.diff

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


More information about the New-bugs-announce mailing list