The getlogin test fails on many Unix buildbots, either with errno 2
(ENOENT) or 22 (EINVAL) or "OSError: unable to determine login name":

======================================================================
ERROR: test_getlogin (test.test_os.LoginTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/home/buildslave/python-trunk/3.x.norwitz-x86/build/Lib/test/test_os.py", line 
1208, in test_getlogin
    user_name = os.getlogin()
OSError: [Errno 2] No such file or directory

======================================================================
ERROR: test_getlogin (test.test_os.LoginTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home2/buildbot2/slave/3.x.loewis-parallel/build/Lib/test/test_os.py", 
line 1208, in test_getlogin
    user_name = os.getlogin()
OSError: [Errno 22] Invalid argument

======================================================================
ERROR: test_getlogin (test.test_os.LoginTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home2/buildbot/slave/3.x.loewis-sun/build/Lib/test/test_os.py", line 
1208, in test_getlogin
    user_name = os.getlogin()
OSError: unable to determine login name




On Thu, 23 Sep 2010 22:04:14 +0200 (CEST)
brian.curtin <python-check...@python.org> wrote:
> Author: brian.curtin
> Date: Thu Sep 23 22:04:14 2010
> New Revision: 84983
> 
> Log:
> #9808. Implement os.getlogin for Windows, completed by Jon Anglin.
> 
> The test is semi-dumb, it just makes sure something comes back since we
> don't have a solid source to validate the returned login. We can't be 100%
> sure that the USERNAME env var will always match what os.getlogin() returns,
> so we don't make any specific assertion there.


_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to