This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author brett.cannon
Recipients amaury.forgeotdarc, benjamin.peterson, brett.cannon, christian.heimes, georg.brandl, gvanrossum, mark.dickinson, rhettinger
Date 2008-12-07.21:30:29
SpamBayes Score 1.4228589e-09
Marked as misclassified No
Message-id <bbaeab100812071330q45af07b7u50da7e5df38e59db@mail.gmail.com>
In-reply-to <1228685206.0.0.0371028186692.issue1717@psf.upfronthosting.co.za>
Content
On Sun, Dec 7, 2008 at 13:26, Mark Dickinson <report@bugs.python.org> wrote:
>
> Mark Dickinson <dickinsm@gmail.com> added the comment:
>
> About unittest:
>
> unittest.TestLoader has an attribute "sortTestMethodsUsing", which it
> expects to be an old-style comparison.
>
> Should this attribute be updated (and renamed?) to expect a key function
> instead, or left as is?
>

It will break backwards-compatibility if you change it. Possibly the
best solution is to introduce a new attribute that does either key or
just lt comparison and make sortTestMethodsUsing be a descriptor that
wraps the function as needed.
History
Date User Action Args
2008-12-07 21:30:30brett.cannonsetrecipients: + brett.cannon, gvanrossum, georg.brandl, rhettinger, amaury.forgeotdarc, mark.dickinson, christian.heimes, benjamin.peterson
2008-12-07 21:30:30brett.cannonlinkissue1717 messages
2008-12-07 21:30:30brett.cannoncreate