diff options
author | Eric Smith <eric@trueblade.com> | 2008-07-17 19:49:47 (GMT) |
---|---|---|
committer | Eric Smith <eric@trueblade.com> | 2008-07-17 19:49:47 (GMT) |
commit | d6c393ab2bf239d9f25ceab6f9b3b83e44848343 (patch) | |
tree | e6e475fbc042276a08a4bd9be1f9c3b6217fdcbd /Lib | |
parent | 0c1dbf8792cd1d4a8f97070852a16f4afcd7f466 (diff) | |
download | cpython-d6c393ab2bf239d9f25ceab6f9b3b83e44848343.zip cpython-d6c393ab2bf239d9f25ceab6f9b3b83e44848343.tar.gz cpython-d6c393ab2bf239d9f25ceab6f9b3b83e44848343.tar.bz2 |
Backed out r65069, pending fixing it in Windows.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_format.py | 12 | ||||
-rw-r--r-- | Lib/test/test_types.py | 12 |
2 files changed, 2 insertions, 22 deletions
diff --git a/Lib/test/test_format.py b/Lib/test/test_format.py index 1268670..cd46bc2 100644 --- a/Lib/test/test_format.py +++ b/Lib/test/test_format.py @@ -88,18 +88,6 @@ class FormatTest(unittest.TestCase): testboth("%#.*F", (110, -1.e+100/3.)) overflowrequired = 0 - # check for %f and %F - testboth("%f", (1.0,), "1.000000") - testboth("%F", (1.0,), "1.000000") - testboth("%f", (1e100,), "1e+100") - testboth("%F", (1e100,), "1E+100") - testboth("%f", (1e100,), "1e+100") - testboth("%F", (1e100,), "1E+100") - testboth("%f", (float('nan'),), "nan") - testboth("%F", (float('nan'),), "NAN") - testboth("%f", (float('inf'),), "inf") - testboth("%F", (float('inf'),), "INF") - # Formatting of long integers. Overflow is not ok overflowok = 0 testboth("%x", 10L, "a") diff --git a/Lib/test/test_types.py b/Lib/test/test_types.py index 78106a3..03f2ff8 100644 --- a/Lib/test/test_types.py +++ b/Lib/test/test_types.py @@ -587,17 +587,9 @@ class TypesTests(unittest.TestCase): test( 1.0, '+f', '+1.000000') test(-1.0, '+f', '-1.000000') test(1.1234e90, 'f', '1.1234e+90') - test(1.1234e90, 'F', '1.1234E+90') + test(1.1234e90, 'F', '1.1234e+90') test(1.1234e200, 'f', '1.1234e+200') - test(1.1234e200, 'F', '1.1234E+200') - test(1e100, 'x<20f', '1e+100xxxxxxxxxxxxxx') - test(1e100, 'x<20F', '1E+100xxxxxxxxxxxxxx') - test(float('nan'), 'f', 'nan') - test(float('nan'), 'F', 'NAN') - test(float('inf'), 'f', 'inf') - test(float('inf'), 'F', 'INF') - test(float('-inf'), 'f', '-inf') - test(float('-inf'), 'F', '-INF') + test(1.1234e200, 'F', '1.1234e+200') test( 1.0, 'e', '1.000000e+00') test(-1.0, 'e', '-1.000000e+00') |