When running python.main(), any failed unit tests do not return exit code 1 to python module that invoked the test.
Stated here, running pytest will not raise system exit, but is there a way to have failed unit tests behave the same or allow for a return of code (1) to the calling function?