New submission from Denver Coneybeare <denver.coneybe...@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 <rep...@bugs.python.org> <http://bugs.python.org/issue9553> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com