Commit a7cba40d authored by Neal Norwitz's avatar Neal Norwitz

Fix SF bug #697556, test_posix fails: getlogin

getlogin() can fail for too many reasons, so remove the test
parent 4f85ad70
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment