[docs] [issue15939] make *.rst files in Doc/ parseable by doctest

Chris Jerdonek report at bugs.python.org
Thu Sep 20 06:58:18 CEST 2012


Chris Jerdonek added the comment:

My opinion on the "+LINUX" and "+WINDOWS" doctest directives in Doc/library/ctypes.rst is simply to leave them alone for now.  We can make those errors go away in code when running doctest by adding no-op calls to doctest.register_optionflag() as below:

+doctest.register_optionflag('WINDOWS')
+doctest.register_optionflag('LINUX')

prior to constructing the doctest TestSuites.

----------

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


More information about the docs mailing list