How to parametrize exception testing in PyTest?

13 points by ubernostrum


hoistbypetard

Thanks for sharing this today. I was just this afternoon groping around for a way to accomplish this specific thing. I missed the mention in the official docs, and search engines had not yet taken me to the mention in SO. Also, aliasing nullcontext to to does_not_raise is a pretty clever readability improvement, IMO.