SVN: ZODB/trunk/src/ZEO/scripts/zeopack.test Get consistent optparse help regardless of actual terminal output

Jim Fulton <[email protected]>
Newsgroups gmane.comp.python.zope.zodb.cvs
Message-ID <20100205171429.AAEE1941AF__2341.56948649815$1265390088$gmane$org@cvs.zope.org>
Log message for revision 108793:
  Get consistent optparse help regardless of actual terminal output
  to avoid spurious test failures.
  

Changed:
  U   ZODB/trunk/src/ZEO/scripts/zeopack.test

-=-
Modified: ZODB/trunk/src/ZEO/scripts/zeopack.test
===================================================================
--- ZODB/trunk/src/ZEO/scripts/zeopack.test	2010-02-05 16:13:49 UTC (rev 108792)
+++ ZODB/trunk/src/ZEO/scripts/zeopack.test	2010-02-05 17:14:29 UTC (rev 108793)
@@ -44,6 +44,7 @@
 
 If we call it with no arguments, we get help:
 
+>>> import os; os.environ['COLUMNS'] = '80' # for consistent optparse output
 >>> main([], 'zeopack')
 Usage: zeopack [options] [servers]
 <BLANKLINE>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.