[Python-bugs-list] [ python-Bugs-697556 ] test_posix fails: getlogin

SourceForge.net noreply@sourceforge.net
Thu, 06 Mar 2003 16:09:57 -0800


Bugs item #697556, was opened at 2003-03-04 17:02
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=697556&group_id=5470

Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Michael Stone (mbrierst)
Assigned to: Neal Norwitz (nnorwitz)
Summary: test_posix fails: getlogin

Initial Comment:

I see bug #690081 made this run only in interactive
mode, but it still fails for me when I do a make test.
Apparently my utmp is in an unexpected place,
/var/run/, which I guess doesn't agree with my libc?

I don't know how common this bug will be for other
people, but if anyone else experiences it you should
probably just get rid of the getlogin test altogether,
or at least catch the OSError: (2, 'No such file or directory')
and don't have that mean test failure.

----------------------------------------------------------------------

>Comment By: Neal Norwitz (nnorwitz)
Date: 2003-03-06 19:09

Message:
Logged In: YES 
user_id=33168

Michael, can you test the attached patch?  It should fix the
problem.

----------------------------------------------------------------------

Comment By: Neal Norwitz (nnorwitz)
Date: 2003-03-06 01:26

Message:
Logged In: YES 
user_id=33168

I'll take a look at this soon.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=697556&group_id=5470