]> granicus.if.org Git - python/commit
Fix SF bug #690081, test_posix fails when run in non-interactive mode
authorNeal Norwitz <nnorwitz@gmail.com>
Sun, 23 Feb 2003 22:12:24 +0000 (22:12 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Sun, 23 Feb 2003 22:12:24 +0000 (22:12 +0000)
commit71b13e8b4c4aad547d870a63e9b2f8784835eb2f
treeffd86a59998001499d1205ec4547a49d4465e865
parentc3bbeb3749d84809e4b959788b7ff5f134f39ba3
Fix SF bug #690081, test_posix fails when run in non-interactive mode

Don't bother testing os.getlogin() if we aren't running from a tty (terminal)
It fails when run without a tty (e.g., when run from cron).
Lib/test/test_posix.py