Message77261
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. |
|
Date |
User |
Action |
Args |
2008-12-07 21:30:30 | brett.cannon | set | recipients:
+ brett.cannon, gvanrossum, georg.brandl, rhettinger, amaury.forgeotdarc, mark.dickinson, christian.heimes, benjamin.peterson |
2008-12-07 21:30:30 | brett.cannon | link | issue1717 messages |
2008-12-07 21:30:30 | brett.cannon | create | |
|