Message124764
The constructor of TextTestRunner class looks like:
def __init__(self, stream=sys.stderr, descriptions=1, verbosity=1)
Since the default parameter is evaluated only once, if sys.stderr is redirected later, the test would still use the old stderr when it was first initialized. |
|
Date |
User |
Action |
Args |
2010-12-28 06:57:59 | cooyeah | set | recipients:
+ cooyeah |
2010-12-28 06:57:59 | cooyeah | set | messageid: <1293519479.07.0.371916485658.issue10786@psf.upfronthosting.co.za> |
2010-12-28 06:57:57 | cooyeah | link | issue10786 messages |
2010-12-28 06:57:57 | cooyeah | create | |
|