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

Steven Bethard report at bugs.python.org
Tue Aug 10 11:44:38 CEST 2010


Steven Bethard <steven.bethard at gmail.com> added the comment:

The best solution would be to make sure that a few different column widths are tested. However, in the meantime, the tests do assume 80 columns, so I think it's correct to specify that using os.environ as suggested.

One problem with the proposed patch is that it makes the change globally, and we should be restoring the original setting after the end of the argparse tests.

----------

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


More information about the Python-bugs-list mailing list