diff options
-rw-r--r-- | Lib/test/test_posix.py | 6 |
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) |