[Python-Dev] Test failures when running as root

Chris Angelico rosuav at gmail.com
Tue Jan 14 05:09:51 CET 2014


On Tue, Jan 14, 2014 at 2:16 PM, MRAB <python at mrabarnett.plus.com> wrote:
> Alternatively:
>
> g = max(self.saved_groups, [1])
>
> or even:
>
> g = max(self.saved_groups or [1])

Patch created and tracker issue opened. I've used something similar to
MRAB's idea as it looks compact. Thanks all!

http://bugs.python.org/issue20249

Is the patch in the right format? I'm not familiar with hg, so I just
looked up a git<->hg Rosetta Stone that told me to use 'hg export'.
The patch works with 'hg import' on 2.7 and 3.3.

ChrisA


More information about the Python-Dev mailing list