A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2013-October/129878.html below:

[Python-Dev] [Python-checkins] cpython: Issue #19330: Handle the no-docstrings case in tests

[Python-Dev] [Python-checkins] cpython: Issue #19330: Handle the no-docstrings case in tests [Python-Dev] [Python-checkins] cpython: Issue #19330: Handle the no-docstrings case in testsStefan Krah stefan-usenet at bytereef.org
Sat Oct 26 14:50:01 CEST 2013
nick.coghlan <python-checkins at python.org> wrote:
> http://hg.python.org/cpython/rev/a9bbc2d0c1dc
> -HAVE_DOCSTRINGS = (check_impl_detail(cpython=False) or
> -                   sys.platform == 'win32' or
> -                   sysconfig.get_config_var('WITH_DOC_STRINGS'))
> +# Rather than trying to enumerate all the cases where docstrings may be
> +# disabled, we just check for that directly
> +
> +def _check_docstrings():
> +    """Just used to check if docstrings are enabled"""
> +
> +HAVE_DOCSTRINGS = (_check_docstrings.__doc__ is not None)
>  
>  requires_docstrings = unittest.skipUnless(HAVE_DOCSTRINGS,

I think that does not detect --without-doc-strings (i.e. the C docstrings are
empty).


Stefan Krah



More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4