Lines Matching defs:test
1 from test.support import verbose, TestFailed
5 import test.support as support
10 # test string formatting operator (I am not sure if this is being tested
13 # test on bytes object as well
51 # if formatstr is a str, test str, bytes, and bytearray;
52 # otherwise, test bytes and bytearray
92 # test str and bytes
99 # test the format identifiers that work the same across
117 # these are trying to test the limits of the internal magic-number-length
123 # test some ridiculously large precision, expect overflow
394 # test the null character
492 # regression test for bugs.python.org/issue40780
535 # Also test the builtin format() function.
539 # Also test f-strings.
601 self.assertEqual(f"{-0.:z>6.1f}", "zz-0.0") # test fill, esp. 'z' fill