On Tue, Jun 2, 2009 at 2:22 PM, Michael Foord <[email protected]> wrote:
> Tarek Ziadé wrote:
>>
>> On Tue, Jun 2, 2009 at 2:06 PM, Michael Foord <[email protected]>
>> wrote:
>>
>>
>>>
>>> Ah - I see the problem. In Python 2.5 testRunner defaulted to None and
>>> main
>>> created its own TextTestRunner. In 2.6 the default was changed to be the
>>> TextTestRunner class. Unfortunately 2.5 needs either None or an instance
>>> of
>>> a runner.
>>>
>>> The easiest thing to do might be to create a dictionary of keyword
>>> arguments
>>> and omit testRunner if it is None. Call main with unittest.main(**args).
>>>
>>
>> Yeah that shall do the trick, thanks
>>
>
> It's a bad change in unittest (not me thankfully ;-).
>
> I'll see if I can get it switched back in 2.7 (replacing testRunner with the
> class if it is passed in as None).

In that case, backport it to the next 2.6 maintenance release

here's the patch for setuptools

Cheers


>
> All the best,
>
> Michael
>
> --
> http://www.ironpythoninaction.com/
>
>



-- 
Tarek Ziadé | http://ziade.org

Attachment: fixtest.patch
Description: Binary data

_______________________________________________
Distutils-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to