[Distutils] Patch for your setuptools issue
Tarek Ziadé
ziade.tarek at gmail.com
Tue Jun 2 14:26:06 CEST 2009
On Tue, Jun 2, 2009 at 2:22 PM, Michael Foord <fuzzyman at voidspace.org.uk> wrote:
> Tarek Ziadé wrote:
>>
>> On Tue, Jun 2, 2009 at 2:06 PM, Michael Foord <fuzzyman at voidspace.org.uk>
>> 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fixtest.patch
Type: application/octet-stream
Size: 901 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/distutils-sig/attachments/20090602/9373a47f/attachment.obj>
More information about the Distutils-SIG
mailing list