0%

Unittest using IPython

The other day I was doing unittest using sublime text 3 with Hermes, providing interaction with Jupyter kernels. Everything was fine until the unitest error occured:

1
2
if __name__ == '__main__':
unittest.main()

unittest error using ipython
After changing to:

1
2
if __name__ == '__main__':
unittest.main(argv=['first-arg-is-ignored'], exit=False)

Solved.