[Distutils] Patch for your setuptools issue
Michael Foord
fuzzyman at voidspace.org.uk
Tue Jun 2 14:22:54 CEST 2009
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).
All the best,
Michael
--
http://www.ironpythoninaction.com/
More information about the Distutils-SIG
mailing list