Forum Discussion
Melissaservin
Occasional Visitor
The easiest way to stop the display of junk at the end of a failed assertion message is to use the assert function from the built-in Python "unittest" library instead of the assert statement. The unittest library provides more control over the assertion messages and their formatting. upsers account
Taz
2 years agoContributor
Interesting. Could you give an example or is there some documentation about how to do this?