mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Fix SF bug #697556, test_posix fails: getlogin
getlogin() can fail for too many reasons, so remove the test
This commit is contained in:
parent
6613fb8412
commit
6e54f579a6
1 changed files with 0 additions and 6 deletions
|
@ -33,12 +33,6 @@ class PosixTester(unittest.TestCase):
|
|||
"getegid", "geteuid", "getgid", "getgroups",
|
||||
"getpid", "getpgrp", "getppid", "getuid",
|
||||
]
|
||||
# getlogin() only works when run from a tty (terminal)
|
||||
try:
|
||||
if os.isatty(sys.stdin.fileno()):
|
||||
NO_ARG_FUNCTIONS.append("getlogin")
|
||||
except:
|
||||
pass
|
||||
|
||||
for name in NO_ARG_FUNCTIONS:
|
||||
posix_func = getattr(posix, name, None)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue