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

Method assertIsNaN

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

Source from the content-addressed store, hash-verified

2831
2832 # Custom assertions.
2833 def assertIsNaN(self, value):
2834 self.assertTrue(
2835 math.isnan(value),
2836 msg="Expected a NaN, got {!r}".format(value)
2837 )
2838
2839 def assertIsPositiveZero(self, value):
2840 self.assertTrue(

Callers 1

test_fma_nan_resultsMethod · 0.95

Calls 2

assertTrueMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected