A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2014-January/131488.html below:

[Python-Dev] Test failures when running as root

[Python-Dev] Test failures when running as rootMRAB python at mrabarnett.plus.com
Tue Jan 14 04:16:29 CET 2014
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])

More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4