Lines Matching defs:test
10 from test import support
11 from test.support import import_helper
12 from test.test_grammar import (VALID_UNDERSCORE_LITERALS,
27 #locate file with float format test values
83 # Additional test cases; nan and inf are never valid as literals,
348 # the only difference from assertEqual is that this test
402 # test builtin pow and ** operator for IEEE 754 special cases.
778 # test short float repr introduced in Python 3.1. One aspect
913 def test(fmt, value, expected):
923 test(fmt, INF, 'inf')
924 test(fmt, -INF, '-inf')
925 test(fmt, NAN, 'nan')
926 test(fmt, -NAN, 'nan')
929 test(pfmt, INF, '+inf')
930 test(pfmt, -INF, '-inf')
931 test(pfmt, NAN, '+nan')
932 test(pfmt, -NAN, '+nan')
935 test(sfmt, INF, ' inf')
936 test(sfmt, -INF, '-inf')
937 test(sfmt, NAN, ' nan')
938 test(sfmt, -NAN, ' nan')
1452 # Regression test for a corner-case bug reported in b.p.o. 44954