[Zope-dev] no color with testrunner under python2.5

2008-04-03 Thread Bernd Dorn

hi all

i have a testrunner configured with buildout like this

[test]
recipe = zc.recipe.testrunner
defaults = ['--auto-color']
eggs = someegg

with python2.4 i get colored output, with python2.5 under macos x  
leopard


does anyone have a clue what the cause is?

thx, bernd

--
Lovely Systems, senior developer

phone: +43 5572 908060, fax: +43 5572 908060-77
Schmelzhütterstraße 26a, 6850 Dornbirn, Austria
skype: bernd.dorn





smime.p7s
Description: S/MIME cryptographic signature
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] no color with testrunner under python2.5

2008-04-03 Thread Benji York

Bernd Dorn wrote:
with python2.4 i get colored output, with python2.5 under macos x  
leopard


does anyone have a clue what the cause is?


If the only difference is running under Python 2.5 instead of 2.4, then 
I don't have any ideas.  I just tested 2.4 and 2.5 on Linux and both 
worked fine.


If you want to investigate, the place to start is in 
zope/testing/testrunner.py at line 2417.

--
Benji York
Senior Software Engineer
Zope Corporation
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] no color with testrunner under python2.5

2008-04-03 Thread Bernd Dorn


On 03.04.2008, at 14:54, Benji York wrote:


If the only difference is running under Python 2.5 instead of 2.4,  
then I don't have any ideas.  I just tested 2.4 and 2.5 on Linux and  
both worked fine.


If you want to investigate, the place to start is in zope/testing/ 
testrunner.py at line 2417.



thx for the hint benji

on my python2.5 the _curses module was lacking, that was the problem,  
but as i see curses is not required just for --auto-color, --color  
works as expected




--
Lovely Systems, senior developer

phone: +43 5572 908060, fax: +43 5572 908060-77
Schmelzhütterstraße 26a, 6850 Dornbirn, Austria
skype: bernd.dorn





smime.p7s
Description: S/MIME cryptographic signature
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] no color with testrunner under python2.5

2008-04-03 Thread Benji York

Bernd Dorn wrote:
on my python2.5 the _curses module was lacking, that was the problem,  
but as i see curses is not required just for --auto-color, --color  
works as expected


Right, the --auto-color code takes two things into account: is stdout a 
terminal and if so, does it have color support.  The first is easy to 
determine, the second depends on curses (and defaults to no color if 
curses isn't available).

--
Benji York
Senior Software Engineer
Zope Corporation
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce

http://mail.zope.org/mailman/listinfo/zope )