I found that Captured stderr is only display when there is also something captured in stdout.
Additionally, if a logger adds the handler logging.StreamHandler(), which according to the official documentation is supposed to set its output to sys.stderr if nothing else is specified, its output will not appear in the Captured stderr.
As it is now, no captured output appears when I run green. Uncommenting the line # print("PRINT") will show both Captured stdout and Captured stderr. Uncommenting the other commented line will make "ERROR" not appear in the Captured stderr anymore, but rather within the execution whenever it happened to be called.
Using Green 3.2.0 & Python 3.8.2
I found that Captured stderr is only display when there is also something captured in stdout. Additionally, if a logger adds the handler
logging.StreamHandler()
, which according to the official documentation is supposed to set its output to sys.stderr if nothing else is specified, its output will not appear in the Captured stderr.As it is now, no captured output appears when I run
green
. Uncommenting the line# print("PRINT")
will show both Captured stdout and Captured stderr. Uncommenting the other commented line will make"ERROR"
not appear in the Captured stderr anymore, but rather within the execution whenever it happened to be called.