I am using assert in python. Every time an assert fails I get the failure message which I would have put there to be printed. I was wondering if there is a way to print a cu
Yes, the simplest is surely to place a print below the assert:
assert self.clnt.stop_io()==1, "IO stop failed" print("IO stop passed at location ==1")