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 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])
This would be [1] instead of 1.
or even:
g = max(self.saved_groups or [1])
This is 1.
--
Terry Jan Reedy
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com