Windows python 2.2.1 IDLE glitch - unittest output display nothing

Peter Hansen peter at engcorp.com
Sat May 25 10:23:33 EDT 2002


Andy Bulka wrote:
> 
> When running a script using CTRL-F5 under IDLE under windows 2000,
> python 2.2.1 I find that unittests run but the resulting stderr output
> does not appear at all?  

Can't help you with the problem itself, but maybe this would be
an adequate (if temporary) workaround:

# redirect stderr to stdout for unittest output... must come before
# the unittest import
import sys
sys.stderr = sys.stdout    

> import unittest, random
> 
> class TestCase00(unittest.TestCase):
>     def checkA(self):
>         assert 1
>     def checkB(self):
>         assert 0



More information about the Python-list mailing list