[issue19535] Test failures with -OO

Terry J. Reedy report at bugs.python.org
Sat Nov 16 01:37:17 CET 2013


Terry J. Reedy added the comment:

I presume a test could detect docstring stripping with

def f(): 'docstring'
if f.__doc__ is None: <skip test that expects them>

This would cover the test_functools case, but I don't know about the others.

----------
nosy: +terry.reedy

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


More information about the Python-bugs-list mailing list