MCPcopy Index your code
hub / github.com/python/cpython / assertIsNaN

Method assertIsNaN

Lib/test/test_math.py:2465–2467  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

2463 # Custom assertions.
2464
2465 def assertIsNaN(self, value):
2466 if not math.isnan(value):
2467 self.fail("Expected a NaN, got {!r}.".format(value))
2468
2469 def assertEqualSign(self, x, y):
2470 """Similar to assertEqual(), but compare also the sign with copysign().

Callers 4

testRemainderMethod · 0.95
test_prodMethod · 0.95
test_nextafterMethod · 0.95
test_ulpMethod · 0.95

Calls 2

failMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected