Closed aidanPB closed 4 years ago
Use the match keyword argument to pytest.raises() to make assertions about error messages. At some point pytest changed the string representation of ExceptionInfo objects, and the assertions against str(exc_info) were failing.
Not sure what's causing those connection resets under Python 3.5. It works under 3.6 and 3.7.
Hi!
thanks!!
I’ll take a look at 3.5 issue and merge soon.
Use the match keyword argument to pytest.raises() to make assertions about error messages. At some point pytest changed the string representation of ExceptionInfo objects, and the assertions against str(exc_info) were failing.