[issue6292] Fix tests to work with -OO

Antoine Pitrou report at bugs.python.org
Wed Jun 17 00:25:39 CEST 2009

Antoine Pitrou <pitrou at free.fr> added the comment:

Rather than silently skipping stuff or writing to stderr, the patch
should, as much as possible, use the new test-skipping API in unittest.
Perhaps DocTestSuite could centralize some of the effort by inspecting
sys.flags and skipping accordingly (but users may also set __doc__

nosy: +pitrou

Python tracker <report at bugs.python.org>

More information about the Python-bugs-list mailing list