[Zope3-checkins] SVN: zope.testing/trunk/src/zope/testing/testrunner.py Fix failure in testrunner-layer-api.txt: ``args`` can be None at this point.

Marius Gedminas marius at pov.lt
Wed Jul 18 11:17:52 EDT 2007


Log message for revision 78114:
  Fix failure in testrunner-layer-api.txt: ``args`` can be None at this point.
  
  

Changed:
  U   zope.testing/trunk/src/zope/testing/testrunner.py

-=-
Modified: zope.testing/trunk/src/zope/testing/testrunner.py
===================================================================
--- zope.testing/trunk/src/zope/testing/testrunner.py	2007-07-18 14:41:26 UTC (rev 78113)
+++ zope.testing/trunk/src/zope/testing/testrunner.py	2007-07-18 15:17:51 UTC (rev 78114)
@@ -2296,7 +2296,7 @@
     # --no-color option.  That way the subprocess doesn't have to decide (which
     # it would do incorrectly anyway because stdout wouled be a pipe).
     def apply_auto_color(args):
-            if '--auto-color' in args:
+            if args and '--auto-color' in args:
                 if sys.stdout.isatty():
                     colorization = '--color'
                 else:



More information about the Zope3-Checkins mailing list