[New-bugs-announce] [issue9553] test_argparse.py: 80 failures if COLUMNS env var set to a value other than 80

Denver Coneybeare report at bugs.python.org
Tue Aug 10 04:03:22 CEST 2010


New submission from Denver Coneybeare <denver.coneybeare at gmail.com>:

If the COLUMNS environment variable is set to a value other than 80 then test_argparse.py yields 80 failures.  The value of the COLUMNS environment variable affects line wrapping of the help output and the test cases assume line wraps at 80 columns.  So setting COLUMNS=160, for example, then running the tests will reproduce the failures.  The fix is to invoke: os.environ["COLUMNS"] = "80".

A proposed patch for py3k/Lib/test/test_argparse.py is attached (test_argparse.py.COLUMNS.patch)

----------
components: Tests
files: test_argparse.py.COLUMNS.patch
keywords: patch
messages: 113504
nosy: benjamin.peterson, bethard, denversc, eric.smith
priority: normal
severity: normal
status: open
title: test_argparse.py: 80 failures if COLUMNS env var set to a value other than 80
versions: Python 3.3
Added file: http://bugs.python.org/file18462/test_argparse.py.COLUMNS.patch

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


More information about the New-bugs-announce mailing list