On Tue, May 21, 2013 at 8:09 PM, Jim Mooney <cybervigila...@gmail.com> wrote: > > "c:\Python27\Lib\site-packages\nose-1.3.0-py2.7.egg\nose\core.py", > line 200, in runTests > sys.exit(not self.success) > SystemExit: False > > As i said, nose works and says Okay on the asserts (or not if I give > things a bad value). I was just wondering what they SystemExit: False > meant, or is that standard?
Python's bool type is a subclass of int, so the function that handles system exit converts False to 0. In terms of process exit codes, 0 means success. On Windows the exit code is set in "errorlevel": >>> raise SystemExit(False) C:\>echo %errorlevel% 0 >>> raise SystemExit(True) C:\>if errorlevel 1 echo spam spam _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor