diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-11-23 18:46:41 +0000 |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-11-23 18:46:41 +0000 |
commit | 18cfada1eac3a798fffa658fc67582a450b5a7e6 (patch) | |
tree | 09b233b73487c2c63ebeb94282265eef692e2235 /Lib/test/string_tests.py | |
parent | 5c456e6f4571fec64a98e28e7e316972f35d19fc (diff) | |
download | cpython-git-18cfada1eac3a798fffa658fc67582a450b5a7e6.tar.gz |
Remove restriction on precision when formatting floats. This is the
first step towards removing the %f -> %g switch (see issues 7117,
5859).
Diffstat (limited to 'Lib/test/string_tests.py')
-rw-r--r-- | Lib/test/string_tests.py | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/Lib/test/string_tests.py b/Lib/test/string_tests.py index e66855d18a..caff3d4c34 100644 --- a/Lib/test/string_tests.py +++ b/Lib/test/string_tests.py @@ -1090,14 +1090,7 @@ class MixinStrUnicodeUserStringTest: value = 0.01 for x in xrange(60): value = value * 3.141592655 / 3.0 * 10.0 - # The formatfloat() code in stringobject.c and - # unicodeobject.c uses a 120 byte buffer and switches from - # 'f' formatting to 'g' at precision 50, so we expect - # OverflowErrors for the ranges x < 50 and prec >= 67. - if x < 50 and prec >= 67: - self.checkraises(OverflowError, format, "__mod__", value) - else: - self.checkcall(format, "__mod__", value) + self.checkcall(format, "__mod__", value) def test_inplace_rewrites(self): # Check that strings don't copy and modify cached single-character strings |