Friday, 13 September 2013

Doctest failed with zero exit code

Doctest failed with zero exit code

In my test code, my doctest fails but the script exit with a zero returns
value, which causes the CI run to pass and is not intended.
Is this the correct behavior of doctest module?
My script ends with:
if __name__ == '__main__':
import doctest
doctest.testmod()

No comments:

Post a Comment