<div class="gmail_quote">On Fri, Sep 24, 2010 at 06:49, Antoine Pitrou <span dir="ltr">&lt;<a href="mailto:solipsis@pitrou.net">solipsis@pitrou.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">On Fri, 24 Sep 2010 13:38:44 +0200<br>
&quot;Amaury Forgeot d&#39;Arc&quot; &lt;<a href="mailto:amauryfa@gmail.com">amauryfa@gmail.com</a>&gt; wrote:<br>
&gt; 2010/9/24 Antoine Pitrou &lt;<a href="mailto:solipsis@pitrou.net">solipsis@pitrou.net</a>&gt;:<br>
&gt; &gt;<br>
&gt; &gt; The getlogin test fails on many Unix buildbots, either with errno 2<br>
&gt; &gt; (ENOENT) or 22 (EINVAL) or &quot;OSError: unable to determine login name&quot;:<br>
&gt;<br>
&gt; Do these buildbots run in a Windows service, i.e. with no user logged in?<br>
<br>
</div>I don&#39;t think any of our Unix buildbots runs in our Windows service :)<br>
<br>
The diversity of errors we get is a bit disturbing: in the Linux man<br>
pages, ENOENT is mentioned as a glibc extension (“There was no<br>
corresponding entry in the utmp-file”)  but EINVAL is not mentioned at<br>
all; also, returning NULL without setting errno is not a possibility in<br>
the POSIX spec.<br>
<br>
Regards<br>
<font color="#888888"><br>
Antoine.</font></blockquote><div><br></div><div>Now, it makes sense why there was no os.getlogin() test in the past. I&#39;ll disable the test for the time being.</div></div>