summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_posix.py
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2003-03-18 13:30:14 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2003-03-18 13:30:14 (GMT)
commit6e54f579a68c1c8e567a49464afda8599a03b7a7 (patch)
treebc0439bdaa78d473f793e85c7aa33d9ebb546827 /Lib/test/test_posix.py
parent6613fb8412ce9551875c200af77d4c41f6911772 (diff)
downloadcpython-6e54f579a68c1c8e567a49464afda8599a03b7a7.zip
cpython-6e54f579a68c1c8e567a49464afda8599a03b7a7.tar.gz
cpython-6e54f579a68c1c8e567a49464afda8599a03b7a7.tar.bz2
Fix SF bug #697556, test_posix fails: getlogin
getlogin() can fail for too many reasons, so remove the test
Diffstat (limited to 'Lib/test/test_posix.py')
-rw-r--r--Lib/test/test_posix.py6
1 files changed, 0 insertions, 6 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py
index feb033d..5a0028c 100644
--- a/Lib/test/test_posix.py
+++ b/Lib/test/test_posix.py
@@ -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)