[Python-bugs-list] [ python-Bugs-690081 ] test_posix fails when run in non-interactive mode

SourceForge.net noreply@sourceforge.net
Thu, 20 Feb 2003 07:06:31 -0800


Bugs item #690081, was opened at 2003-02-20 16:06
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=690081&group_id=5470

Category: Python Library
Group: Python 2.3
Status: Open
Resolution: None
Priority: 5
Submitted By: M.-A. Lemburg (lemburg)
Assigned to: Nobody/Anonymous (nobody)
Summary: test_posix fails when run in non-interactive mode

Initial Comment:
>> My nightly cronjob has issued two warnings for the
CVS checkout
>> at 02:00 CET today:
>>
>> test test_posix failed -- Traceback (most recent
call last):
>>   File
"/home/lemburg/projects/Python/Dev-Python/Lib/test/test_posix.py",
line 39, in testNoArgFunctions
>>     posix_func()
>> OSError: [Errno 25] Inappropriate ioctl for device
>>
>> The traceback is not very helpful I'm afraid and
when I run the
>> test by hand I can't reproduce it.
>
>
> Try running the test from a cron job without regrtest
(i.e. ./python
> Lib/test/test_posix.py), and putting some extra
prints in it.
>
> Some of the functions tested (e.g. ctermid, getlogin)
use stdin to
> determine who is logged in.  Maybe these should just
be ignored if
> they fail with this specific error (since the error
means they're
> working as advertised).


Ok, here's the output:

testNoArgFunctions (__main__.PosixTester) ... Running
function ctermid
Running function getcwd
Running function getcwdu
Running function uname
Running function times
Running function getlogin
   ERROR
Running function getloadavg
Running function tmpnam
Running function getegid
Running function geteuid
Running function getgid
Running function getgroups
Running function getpid
Running function getpgrp
Running function getppid
Running function getuid
ok

Looks like getlogin doesn't like being run in
non-interactive
mode (ie. without a terminal).



----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=690081&group_id=5470