[issue6292] Fix tests to work with -OO

Collin Winter report at bugs.python.org
Tue Jun 16 19:25:57 CEST 2009


New submission from Collin Winter <collinw at 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 will trigger and another handful of distutils tests that 
are looking for .pyc files.

With this applied, PYTHONOPTIMIZE=2 ./python.exe -OO Lib/test/regrtest.py 
now passes for trunk.

----------
components: Tests
files: oo_tests.patch
keywords: easy, patch
messages: 89434
nosy: collinwinter, jyasskin, rnk
severity: normal
stage: patch review
status: open
title: Fix tests to work with -OO
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file14309/oo_tests.patch

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


More information about the Python-bugs-list mailing list