[issue11420] Make testsuite pass with -B/DONTWRITEBYTECODE set.

Thomas Wouters report at bugs.python.org
Mon Mar 7 00:48:11 CET 2011


New submission from Thomas Wouters <thomas at python.org>:

This patch tweaks a few tests that currently rely on .pyc files being written, causing them to fail (or crash) when running 'make test TESTPYTHONOPTS=-B'. All these are purely test failures, not failures in the tested code (unlike issue #11417, which is a failure in bdist_rpm instead of the test.)

(This patch is for 3.1; the patch for 3.2/default is slightly different. I also have the same patch for Python 2.6/2.7, but I'm not sure if it's worth applying.)

----------
components: Tests
files: py31-dontwritebytecode.diff
keywords: patch
messages: 130204
nosy: twouters
priority: normal
severity: normal
status: open
title: Make testsuite pass with -B/DONTWRITEBYTECODE set.
versions: Python 3.1, Python 3.2, Python 3.3
Added file: http://bugs.python.org/file21022/py31-dontwritebytecode.diff

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


More information about the Python-bugs-list mailing list