It's the call to sys.exit that does this.<br><br>There's a subtle difference between IronPython 2.0B1 and CPython 2.5 when sys.exit is called with a boolean parameter. CPython doesn't print the value of the parameter if it's boolean, while IronPython does. Presumably, CPython does this for backwards compatibility with a time when it didn't have a boolean data type. I'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). But I haven'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 <<a href="mailto:daftspaniel@gmail.com" target="_blank">daftspaniel@gmail.com</a>> 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> import unittest<br> <br>
class ATest(unittest.TestCase):<br> def setUp(self):<br> self.pop = ""<br> def test_blog(self):<br>
print "test"<br> <br> if __name__ == '__main__':<br> unittest.main()<br> <br>Runs fine but under IPY there's a extra line with 'False' 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>