Re: [Python-Dev] Test failures when running as root

2014-01-13 Thread Terry Reedy
On 1/13/2014 10:16 PM, MRAB wrote: On 2014-01-14 03:03, Terry Reedy wrote: On 1/13/2014 7:48 PM, Chris Angelico wrote: And now for something completely different. My root buildbot is finally now able to telnet out and get "Connection refused" errors. (For the curious, the VirtualBox "NAT" mode

Re: [Python-Dev] Test failures when running as root

2014-01-13 Thread Chris Angelico
On Tue, Jan 14, 2014 at 2:16 PM, MRAB 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/issue202

Re: [Python-Dev] Test failures when running as root

2014-01-13 Thread Chris Angelico
On Tue, Jan 14, 2014 at 2:03 PM, Terry Reedy wrote: > On 1/13/2014 7:48 PM, Chris Angelico wrote: >> >> ValueError: max() arg is an empty sequence > > > try: > > g = max(self.saved_groups) + 1 > except ValueError: > g = 1 > > > Unless someone says that it is a bug for posix.getgroups to return

Re: [Python-Dev] Test failures when running as root

2014-01-13 Thread Chris Angelico
On Tue, Jan 14, 2014 at 2:14 PM, Zachary Ware wrote: > On Mon, Jan 13, 2014 at 6:48 PM, Chris Angelico wrote: >> And secondly, how can I run the tests manually? I can't find a binary >> inside the buildarea tree. Does it get deleted afterward? > > Yes, that's the 'clean' step of the buildbot buil

Re: [Python-Dev] Test failures when running as root

2014-01-13 Thread MRAB
On 2014-01-14 03:03, Terry Reedy wrote: On 1/13/2014 7:48 PM, Chris Angelico wrote: And now for something completely different. My root buildbot is finally now able to telnet out and get "Connection refused" errors. (For the curious, the VirtualBox "NAT" mode doesn't work properly, but the new

Re: [Python-Dev] Test failures when running as root

2014-01-13 Thread Zachary Ware
On Mon, Jan 13, 2014 at 6:48 PM, Chris Angelico wrote: > And secondly, how can I run the tests manually? I can't find a binary > inside the buildarea tree. Does it get deleted afterward? Yes, that's the 'clean' step of the buildbot build process. I'd suggest making another clone elsewhere (you c

Re: [Python-Dev] Test failures when running as root

2014-01-13 Thread Terry Reedy
On 1/13/2014 7:48 PM, Chris Angelico wrote: And now for something completely different. My root buildbot is finally now able to telnet out and get "Connection refused" errors. (For the curious, the VirtualBox "NAT" mode doesn't work properly, but the new "NAT Network" mode does. Why? I have no i

[Python-Dev] Test failures when running as root

2014-01-13 Thread Chris Angelico
And now for something completely different. My root buildbot is finally now able to telnet out and get "Connection refused" errors. (For the curious, the VirtualBox "NAT" mode doesn't work properly, but the new "NAT Network" mode does. Why? I have no idea. But if anyone else is having the same pro