[issue6292] Fix tests to work with -OO

2010-02-23 Thread R. David Murray
R. David Murray added the comment: Benjamin pointed out that the primary copy of lib2to3 is not trunk, so I backed out the change to that package. -- ___ Python tracker ___

[issue6292] Fix tests to work with -OO

2010-02-23 Thread R. David Murray
R. David Murray 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

[issue6292] Fix tests to work with -OO

2010-02-22 Thread R. David Murray
R. David Murray 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: -> fixed stage: patch

[issue6292] Fix tests to work with -OO

2009-11-04 Thread Brian Curtin
Brian Curtin 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 DocTestSuite and ret

[issue6292] Fix tests to work with -OO

2009-06-16 Thread Antoine Pitrou
Antoine Pitrou 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 a

[issue6292] Fix tests to work with -OO

2009-06-16 Thread Collin Winter
New submission from Collin Winter : 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 will trigger and ano