Hi,

I have unit tests where I expect failures in the certificate verification 
inside the C core, e.g.,:

with self.assertRaises(...):
    # do something that causes C core to log to stderr
    pass

# I'd like to check the specific error messages, e.g.:
# assert 'some specific error message' in stderr
 

Is it at all possible to inspect the stderr in order to check that specific 
error messages are logged?
I see `src/python/grpcio_tests/tests/_runner.py` does the stdout/stderr 
capture, so I'm trying to look there, but any guidance is appreciated! 
e.g., "it's possible: look here," or "it will require a major change and/or 
won't be accepted" :)

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"grpc.io" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/grpc-io.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/grpc-io/260e389f-60d6-4993-97f6-15c8b392f5ab%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to