R. David Murray rdmur...@bitdance.com added the comment:
Committed to py3k in r78400. Had to add the make_request_and_skipIf decorator
to test_xmplrc as well.
--
priority: - normal
status: open - closed
versions: +Python 3.2
___
Python tracker
R. David Murray rdmur...@bitdance.com added the comment:
Applied a slightly cleaned up (with help from Brian and Matias Torchinsky at
the sprint) version of Brian's patch in r78351. Leaving open until merged to
py3k.
--
assignee: - r.david.murray
nosy: +r.david.murray
resolution: -
Brian Curtin cur...@acm.org added the comment:
I've attached a patch against trunk (r76107) which I think implements
more of what Antoine is looking for. It builds on Collin's patch but
uses unittest.skipIf to skip tests which shouldn't be run with -OO. It
also checks sys.flags.optimize in
New submission from Collin Winter coll...@gmail.com:
The attached patch fixes a number of tests to work when -OO is given to
Python. The majority of these tests are docstring-related, either doctests
or making assertions about __doc__, with a handful of tests testing that
assert statements
Antoine Pitrou pit...@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