It&#39;s the call to sys.exit that does this.<br><br>There&#39;s a subtle difference between IronPython 2.0B1 and CPython 2.5 when sys.exit is called with a boolean parameter.&nbsp; CPython doesn&#39;t print the value of the parameter if it&#39;s boolean, while IronPython does.&nbsp; Presumably, CPython does this for backwards compatibility with a time when it didn&#39;t have a boolean data type. I&#39;d guess that sys.exit(False) gets the same behavior as sys.exit(0) while sys.exit(True) is the same as sys.exit(1).&nbsp; But I haven&#39;t checked the CPython source to confirm that guess.<br>
<br><div class="gmail_quote">On Sat, Apr 5, 2008 at 6:06 AM, Davy Mitchell &lt;<a href="mailto:daftspaniel@gmail.com" target="_blank">daftspaniel@gmail.com</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello List,<br><br>Found a little funny on the latest IPY.<br><br>&nbsp;&nbsp;&nbsp; import unittest<br>&nbsp;&nbsp;&nbsp; <br>

&nbsp;&nbsp;&nbsp; class ATest(unittest.TestCase):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; def setUp(self):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; self.pop = &quot;&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; def test_blog(self):<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print &quot;test&quot;<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp; if __name__ == &#39;__main__&#39;:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; unittest.main()<br>&nbsp;&nbsp;&nbsp; <br>Runs fine but under IPY there&#39;s a extra line with &#39;False&#39; output:<br><br>test<br>

.<br>
--------------------------------------------------------------<br>Ran one test in 0.096s<br><br>OK<br>False<br><br>Anyone had more experience with this module?<br><br>Davy<br clear="all"><font color="#888888"><br>-- <br>

Davy Mitchell<br>Blog - <a href="http://www.latedecember.co.uk/sites/personal/davy/" target="_blank">http://www.latedecember.co.uk/sites/personal/davy/</a><br>
Twitter - <a href="http://twitter.com/daftspaniel" target="_blank">http://twitter.com/daftspaniel</a><br>Skype - daftspaniel <a href="http://needgod.com" target="_blank">http://needgod.com</a>
</font><br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.ironpython.com" target="_blank">Users@lists.ironpython.com</a><br>
<a href="http://lists.ironpython.com/listinfo.cgi/users-ironpython.com" target="_blank">http://lists.ironpython.com/listinfo.cgi/users-ironpython.com</a><br>
<br></blockquote></div><br>