[Python-Dev] Test failures when running as root (original) (raw)

Terry Reedy tjreedy at udel.edu
Tue Jan 14 08:43:41 CET 2014


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: testinitgroups (test.testposix.PosixGroupsTester) ---------------------------------------------------------------------- Traceback (most recent call last): File "/root/buildarea/3.x.angelico-debian-amd64/build/Lib/test/testposix.py", line 1143, in testinitgroups g = max(self.savedgroups) + 1 ValueError: max() arg is an empty sequence try: g = max(self.savedgroups) + 1 except ValueError: g = 1 Alternatively: g = max(self.savedgroups, [1])

This would be [1] instead of 1.

or even: g = max(self.savedgroups or [1])

This is 1.

-- Terry Jan Reedy



More information about the Python-Dev mailing list