Test & Code cover image

195: What would you change about pytest? - Anthony Sottile

Test & Code

00:00

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

Transcript
Play full episode

The AI-powered Podcast Player

Save insights by tapping your headphones, chat with episodes, discover the best highlights - and more!
App store bannerPlay store banner
Get the app