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

Method test_nan

Lib/test/test_unparse.py:335–339  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

333 self.check_ast_roundtrip("-1e1000j")
334
335 def test_nan(self):
336 self.assertASTEqual(
337 ast.parse(ast.unparse(ast.Constant(value=float('nan')))),
338 ast.parse('1e1000 - 1e1000')
339 )
340
341 def test_min_int(self):
342 self.check_ast_roundtrip(str(-(2 ** 31)))

Callers

nothing calls this directly

Calls 2

assertASTEqualMethod · 0.80
parseMethod · 0.45

Tested by

no test coverage detected