Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue14698] test_posix failures - getpwduid()/initgroups()/getgroups()

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Apr 30, 2012, 1:30 AM

Post #1 of 2 (43 views)
Permalink
[issue14698] test_posix failures - getpwduid()/initgroups()/getgroups()

New submission from Charles-François Natali <neologix [at] free>:

test_posix is consistently failing on the bigmem buildbot:

http://python.org/dev/buildbot/all/builders/AMD64 debian bigmem 3.x/builds/291/steps/test/logs/stdio

"""
======================================================================
ERROR: test_getgrouplist (test.test_posix.PosixTester)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmpfs/martin.vonloewis/3.x.loewis-parallel2/build/Lib/test/test_posix.py", line 633, in test_getgrouplist
set(posix.getgrouplist(pwd.getpwuid(os.getuid())[0],
KeyError: 'getpwuid(): uid not found: 5025'

======================================================================
ERROR: test_initgroups (test.test_posix.PosixTester)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/var/tmpfs/martin.vonloewis/3.x.loewis-parallel2/build/Lib/test/test_posix.py", line 111, in test_initgroups
name = pwd.getpwuid(posix.getuid()).pw_name
KeyError: 'getpwuid(): uid not found: 5025'
"""

I assume that's because the buildbot tests run with a UID without any corresponding pwd entry (which is legit).
The attached patch should fix thoe failures, by making the tests more robust.

----------
components: Tests
files: test_no_pwd.diff
keywords: buildbot, easy, needs review, patch
messages: 159677
nosy: neologix, pitrou
priority: normal
severity: normal
status: open
title: test_posix failures - getpwduid()/initgroups()/getgroups()
type: behavior
versions: Python 3.2, Python 3.3
Added file: http://bugs.python.org/file25420/test_no_pwd.diff

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14698>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

May 2, 2012, 11:05 AM

Post #2 of 2 (38 views)
Permalink
[issue14698] test_posix failures - getpwduid()/initgroups()/getgroups() [In reply to]

Roundup Robot <devnull [at] psf> added the comment:

New changeset 45f0272f5296 by Charles-François Natali in branch '2.7':
Issue #14698: Make test_posix more robust when the current UID doesn't have an
http://hg.python.org/cpython/rev/45f0272f5296

New changeset 93424b084d08 by Charles-François Natali in branch '3.2':
Issue #14698: Make test_posix more robust when the current UID doesn't have an
http://hg.python.org/cpython/rev/93424b084d08

New changeset 982c30064bc9 by Charles-François Natali in branch 'default':
Issue #14698: Make test_posix more robust when the current UID doesn't have an
http://hg.python.org/cpython/rev/982c30064bc9

----------
nosy: +python-dev

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14698>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.