[Python-Dev] r84983 - in python/branches/py3k: Doc/library/os.rst Lib/test/test_os.py Misc/NEWS Modules/posixmodule.c (original) (raw)
Antoine Pitrou solipsis at pitrou.net
Fri Sep 24 13:32:03 CEST 2010
- Previous message: [Python-Dev] wiki/docs enhancement idea
- Next message: [Python-Dev] r84983 - in python/branches/py3k: Doc/library/os.rst Lib/test/test_os.py Misc/NEWS Modules/posixmodule.c
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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-checkins at 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.
- Previous message: [Python-Dev] wiki/docs enhancement idea
- Next message: [Python-Dev] r84983 - in python/branches/py3k: Doc/library/os.rst Lib/test/test_os.py Misc/NEWS Modules/posixmodule.c
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]