[Python-Dev] Test failures when running as root
MRAB
python at mrabarnett.plus.com
Tue Jan 14 04:16:29 CET 2014
More information about the Python-Dev mailing list
Tue Jan 14 04:16:29 CET 2014
- Previous message: [Python-Dev] Test failures when running as root
- Next message: [Python-Dev] Test failures when running as root
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 "NAT Network" mode does. Why? I have no >> idea. But if anyone else is having the same problem, upgrade to the >> latest VirtualBox and set up a NAT Network. All I care is, it now >> works.) The test suite is now failing at another point, and this >> applies to 2.7, 3.3, and 3.x. >> >> ====================================================================== >> ERROR: test_initgroups (test.test_posix.PosixGroupsTester) >> ---------------------------------------------------------------------- >> Traceback (most recent call last): >> File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/test_posix.py", >> line 1143, in test_initgroups >> g = max(self.saved_groups) + 1 >> ValueError: max() arg is an empty sequence > > try: > g = max(self.saved_groups) + 1 > except ValueError: > g = 1 > Alternatively: g = max(self.saved_groups, [1]) or even: g = max(self.saved_groups or [1])
- Previous message: [Python-Dev] Test failures when running as root
- Next message: [Python-Dev] Test failures when running as root
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Python-Dev mailing list