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 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 <rep...@bugs.python.org>
<http://bugs.python.org/issue6292>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to