[Python-checkins] python/dist/src/Lib/test test_posix.py,1.4,1.5

nnorwitz@users.sourceforge.net nnorwitz@users.sourceforge.net
Tue, 18 Mar 2003 05:30:18 -0800


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1:/tmp/cvs-serv15534/Lib/test

Modified Files:
	test_posix.py 
Log Message:
Fix SF bug #697556, test_posix fails: getlogin

getlogin() can fail for too many reasons, so remove the test


Index: test_posix.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_posix.py,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** test_posix.py	23 Feb 2003 22:12:24 -0000	1.4
--- test_posix.py	18 Mar 2003 13:30:14 -0000	1.5
***************
*** 34,43 ****
                               "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:
--- 34,37 ----