2min chapter

Test & Code cover image

What would you change about pytest?

Test & Code

CHAPTER

PyTester and NumPy: How to Check for Unknown Values

NumPy arrays override equals equals to give you back another matrix rather than an equality check. And so there's a whole other set of assertion helpers in NumPy. Testing that you have to, you have to remember to import NumPy.testing and do NumPy testing or which is a whole different thing. I would actually need a change in Python. Like I think Python, dare I suggest a triple equals operator,. But Python would maybe do better to have like an, an equality check that's actually an equality checks. Not something that's over loadable, but. Okay. So then when PyTester does the rewrite, does it deal with NumPy correctly? Then I think we

00:00

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode