This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author denversc
Recipients benjamin.peterson, bethard, denversc, eric.smith
Date 2010-08-10.02:03:18
SpamBayes Score 1.7886248e-12
Marked as misclassified No
Message-id <1281405802.56.0.0746900619959.issue9553@psf.upfronthosting.co.za>
In-reply-to
Content
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)
History
Date User Action Args
2010-08-10 02:03:23denverscsetrecipients: + denversc, bethard, eric.smith, benjamin.peterson
2010-08-10 02:03:22denverscsetmessageid: <1281405802.56.0.0746900619959.issue9553@psf.upfronthosting.co.za>
2010-08-10 02:03:20denversclinkissue9553 messages
2010-08-10 02:03:19denversccreate