KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I've got functions, which sometimes return NaNs with float('nan') (I'm not using numpy). How do I write a test for it, since assertEqual(nan_value, float('nan')) is just like float('nan') == float('nan') always false. Is there maybe something like assertIsNan ? I could not find anything about it…
Tags (comma-separated)
Save Edits
Cancel