Chapter 6: Debugging with Pytest

Noah Gift

The real world mostly works. When you get in a modern car, it seldom breaks down. Most houses in the United States are well built and don’t require daily repair. In school, most tests and quizzes have a passing grade by design. Getting an “F” grade is typically very rare.

Software engineering is quite different. Everything breaks every day. When learning to be a software developer, this is the biggest challenge to overcome. Beginners feel like a one hundred foot wave is crushing them over and over again. One solution to this is adopting a new mindset.

I tell students new to programming to embrace the failure. When you are getting hammered by mistakes and failures, this means you are exactly on the ...

Get Testing In Python now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.