[issue19412] Add a test.support decorator for tests that require C level docstrings

Nick Coghlan report at bugs.python.org
Sat Oct 26 19:41:07 CEST 2013


New submission from Nick Coghlan:

It is *not* OK to have a "test.support.HAVE_DOCSTRINGS" flag that is true under -OO, nor a requires_docstrings decorator that still attempts to run the test under those conditions.

Issue 19330 updated them so their meaning matched their names and the surrounding comments, but they were apparently being used instead to refer to a specific kind of CPython build.

A more logical name for such a feature would be HAVE_C_DOCSTRINGS and requires_c_docstrings.

----------
components: Tests
messages: 201379
nosy: ncoghlan, serhiy.storchaka, skrah
priority: normal
severity: normal
status: open
title: Add a test.support decorator for tests that require C level docstrings
versions: Python 3.4

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


More information about the Python-bugs-list mailing list