History log of /external/python/cpython2/Lib/test/test_float.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
43e9007767618aac7d6c30228518ae375ebb3008 29-Nov-2015 Serhiy Storchaka <storchaka@gmail.com> Fixed Py3k warnings in tests for issue #24731.
/external/python/cpython2/Lib/test/test_float.py
8d30ad7c8ad5df59be8a65c8f8dab0d13be00dab 25-Nov-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #24731: Fixed crash on converting objects with special methods
__str__, __trunc__, and __float__ returning instances of subclasses of
str, long, and float to subclasses of str, long, and float correspondingly.
/external/python/cpython2/Lib/test/test_float.py
6156560e4b40ae81304d80b5a932fd90e6b4ba80 20-Nov-2015 Serhiy Storchaka <storchaka@gmail.com> Issue #25678: Copy buffer objects to null-terminated strings.

Avoid buffer overreads when int(), long(), float(), and compile()
are passed buffer objects. Similar code is removed from the
complex() constructor, where it was not reachable.

Patch backported from issue #24802 by Eryk Sun.
/external/python/cpython2/Lib/test/test_float.py
f050648a505b3810b659ca490c2e418a02c702cc 06-Mar-2015 Benjamin Peterson <benjamin@python.org> fix potential refleak in PyFloat_AsDouble (closes #23590)
/external/python/cpython2/Lib/test/test_float.py
1f70221b861a3714735251d57695b2f472d0599b 10-Dec-2013 Zachary Ware <zachary.ware@gmail.com> Issue #19572: More silently skipped tests explicitly skipped.
/external/python/cpython2/Lib/test/test_float.py
e96102b45b943bbd0d6a29e6617c14ef1ef0bd16 29-Oct-2011 Benjamin Peterson <benjamin@python.org> bring is_integer into tested existence
/external/python/cpython2/Lib/test/test_float.py
874d59ee91d257702325fc86658203834fb35589 26-Mar-2011 Mark Dickinson <mdickinson@enthought.com> Issue #11144: Fix corner cases where float-to-int conversion unnecessarily returned a long.
/external/python/cpython2/Lib/test/test_float.py
c2077b0d9b5bf99768c6f396bf7ae6c41b682465 15-Mar-2011 Ezio Melotti <ezio.melotti@gmail.com> #11565: Fix several typos. Patch by Piotr Kasprzyk.
/external/python/cpython2/Lib/test/test_float.py
ecf8ec67ce26dc7612742019cea5c8b190048993 04-Dec-2010 Mark Dickinson <dickinsm@gmail.com> Merged revisions 87032 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
r87032 | mark.dickinson | 2010-12-04 12:25:30 +0000 (Sat, 04 Dec 2010) | 3 lines

Issue #10596: Fix float.__mod__ to have the same behaviour as
float.__divmod__ with respect to signed zeros.
........
/external/python/cpython2/Lib/test/test_float.py
2623a37852153363335956afab010cb0beb7e74e 21-Nov-2010 Ezio Melotti <ezio.melotti@gmail.com> Merged revisions 86596 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line

#9424: Replace deprecated assert* methods in the Python test suite.
........
/external/python/cpython2/Lib/test/test_float.py
ee139688d3d70ae8af00072cb8f0fb1d0d80a688 31-Oct-2010 Brian Curtin <brian.curtin@gmail.com> Merged revisions 86003 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
r86003 | brian.curtin | 2010-10-30 19:03:45 -0500 (Sat, 30 Oct 2010) | 2 lines

Fix ResourceWarning. Use context manager to properly close file.
........
/external/python/cpython2/Lib/test/test_float.py
0df5a858e78e113f7af20a1055d60c88e6acb82a 03-Jul-2010 Benjamin Peterson <benjamin@python.org> don't require the presence of __getformat__ or __setformat__; use requires_IEEE_754 globally
/external/python/cpython2/Lib/test/test_float.py
801923681c6b03ea5f9ab916fa3fdd01335469ab 20-Jun-2010 Mark Dickinson <dickinsm@gmail.com> Merge test_strtod and test_float string-to-float conversion tests.
/external/python/cpython2/Lib/test/test_float.py
5e0c2748fb2e16b3b0f33f0bb55f1aaa1272f887 05-Apr-2010 Mark Dickinson <dickinsm@gmail.com> Use a more robust infinity check in _Py_HashDouble.

This fixes a test_decimal failure on FreeBSD 8.0. (modf apparently
doesn't follow C99 Annex F on FreeBSD.)
/external/python/cpython2/Lib/test/test_float.py
876473bcc8807bdbdb323dd0cc53b18ddeec120d 12-Feb-2010 Mark Dickinson <dickinsm@gmail.com> Check that 'd' isn't allowed as an exponent specifier in inputs to the float function.
/external/python/cpython2/Lib/test/test_float.py
a4f46e129294c686ef1effdd89c459bd9a624e6d 07-Feb-2010 Georg Brandl <georg@python.org> Remove unused imports in test modules.
/external/python/cpython2/Lib/test/test_float.py
aa98058cc44ba20f35c106d20918c6196b737561 24-Jan-2010 Ezio Melotti <ezio.melotti@gmail.com> use assert[Not]In where appropriate
/external/python/cpython2/Lib/test/test_float.py
5ff4f279e6342bf142de22c91662b8eb70ce722a 12-Jan-2010 Mark Dickinson <dickinsm@gmail.com> Issue #7632: Fix a bug in dtoa.c that could lead to incorrectly-rounded results.
/external/python/cpython2/Lib/test/test_float.py
3194d1454cbc11ec477d83fff3fc749972107d29 08-Jan-2010 Mark Dickinson <dickinsm@gmail.com> Backport some float repr tests that were missed in issue 7117.
/external/python/cpython2/Lib/test/test_float.py
99d652ef6602995208278eaecebfe1e2f813f5a0 30-Dec-2009 Mark Dickinson <dickinsm@gmail.com> Issue #7534: Fix handling of nans, infinities, and negative zero in **
operator, on IEEE 754 platforms. Thanks Marcos Donolo for original patch.
/external/python/cpython2/Lib/test/test_float.py
f2bf0d2a51f305f7df9d6199f580b488f1aa5135 02-Dec-2009 Eric Smith <eric@trueblade.com> Issue #4482: Add tests for special float value formatting.
/external/python/cpython2/Lib/test/test_float.py
c4ab8339e9a966d9d8e601531489a5436d197f47 29-Nov-2009 Eric Smith <eric@trueblade.com> Issue #3382: Make '%F' and float.__format__('F') convert results to upper case. Much of the patch came from Mark Dickinson.
/external/python/cpython2/Lib/test/test_float.py
bce783757ff5398280fc06efc2e0e951ec022d21 24-Nov-2009 Mark Dickinson <dickinsm@gmail.com> round(0, "ermintrude") succeeded instead of producing a TypeError. Fix this.
/external/python/cpython2/Lib/test/test_float.py
bd15a06fd3ac256d4f2780c85a9f7e6def1ecd1f 18-Nov-2009 Mark Dickinson <dickinsm@gmail.com> Issue #7117, continued: Change round implementation to use the correctly-rounded
string <-> float conversions; this makes sure that the result of the round
operation is correctly rounded, and hence displays nicely using the new float
repr.
/external/python/cpython2/Lib/test/test_float.py
53e9fa4eed281dc7d1dc05ba359ee2d546a7500f 27-Oct-2009 Mark Dickinson <dickinsm@gmail.com> Test long inputs to float
/external/python/cpython2/Lib/test/test_float.py
8568b198506b4d2ff3c0dc847f75989865b1e33e 26-Oct-2009 Mark Dickinson <dickinsm@gmail.com> Issue #7117: Use PyOS_string_to_double instead of PyOS_ascii_strtod in
floatobject.c. Also, remove limitation on length of unicode inputs to
float().
/external/python/cpython2/Lib/test/test_float.py
5c8da86f3a515ce1a6d5f27fd15e3c5f4d8e931e 01-Jul-2009 Benjamin Peterson <benjamin@python.org> convert usage of fail* to assert*
/external/python/cpython2/Lib/test/test_float.py
b1d45856c255e480c7365e02fc91511c1438ac2a 11-May-2009 Mark Dickinson <dickinsm@gmail.com> Issue #5981: Fix some float.fromhex bugs related to inf and nan handling.
/external/python/cpython2/Lib/test/test_float.py
a985a3aee46dfda4b59cf20414bab199ba1b9659 05-May-2009 Eric Smith <eric@trueblade.com> Issue #5920: Changed format.__float__ and complex.__float__ to use a precision of 12 when using the empty presentation type. This more closely matches str()'s behavior and reduces surprises when adding alignment flags to an empty format string. Patch by Mark Dickinson.
/external/python/cpython2/Lib/test/test_float.py
61a0d05291843fad785111b05b33e23185cb756a 29-Apr-2009 Mark Dickinson <dickinsm@gmail.com> Backport some of the float formatting tests from py3k.
/external/python/cpython2/Lib/test/test_float.py
92fcc9c9919b41a611b1dc084ad8f414f1e4278d 29-Apr-2009 Mark Dickinson <dickinsm@gmail.com> Issue #5864: format(1234.5, '.4') gives misleading result
(Backport of r72109 from py3k.)
/external/python/cpython2/Lib/test/test_float.py
99d36f15639b9efa9ad110005605ae28ca65e829 15-Apr-2009 Benjamin Peterson <benjamin@python.org> call __float__ on str subclasses #5759

tests by R. David Murray
/external/python/cpython2/Lib/test/test_float.py
a853a89dc3c57941a15a7463cf59dfad775a7e5f 07-Sep-2008 Benjamin Peterson <benjamin@python.org> fix missing module
/external/python/cpython2/Lib/test/test_float.py
feb8cade4df1eb0e8eaeb8e2661812fdf5edaa17 06-Sep-2008 Amaury Forgeot d'Arc <amauryfa@gmail.com> #3796: A test class was not run in test_float.
Reviewed by Benjamin.
/external/python/cpython2/Lib/test/test_float.py
892429b08b0ee2d252e3624951a7b9b38423f074 21-Aug-2008 Mark Dickinson <dickinsm@gmail.com> Fix float.fromhex test to give additional information on failure. This
change is aimed at diagnosing issue 3633 (test_float fails on Solaris).

Reviewed by Benjamin Peterson
/external/python/cpython2/Lib/test/test_float.py
62764566e8892233d0408368d6760bd710b1c504 15-Jul-2008 Mark Dickinson <dickinsm@gmail.com> Fix float.from_hex tests. It appears that Linux/ia64 doesn't like
computing 2.0**-1074 accurately. Using ldexp(1.0, -1074) should be
safer.
/external/python/cpython2/Lib/test/test_float.py
7103aa42c0d3ce8d75c9a9e299cf4d9b0be544de 15-Jul-2008 Mark Dickinson <dickinsm@gmail.com> Issue #3008: add instance method float.hex and class method float.fromhex
to convert floats to and from hexadecimal strings respectively.
/external/python/cpython2/Lib/test/test_float.py
bf9f4d801530f4b4f40fe7baf93b1b4d55873275 05-Jul-2008 Mark Dickinson <dickinsm@gmail.com> Issue 3188: accept float('infinity') as well as float('inf'). This
makes the float constructor behave in the same way as specified
by various other language standards, including C99, IEEE 754r,
and the IBM Decimal standard.
/external/python/cpython2/Lib/test/test_float.py
979395b7a8be422dfc9a081f1cd77260c6ea9aef 03-May-2008 Benjamin Peterson <benjamin@python.org> Moved testing of builtin types out of test_builtin and into type specific modules
/external/python/cpython2/Lib/test/test_float.py
6f34109384f3a78d5f4f8bdd418a89caca19631e 19-Apr-2008 Christian Heimes <christian@cheimes.de> I finally got the time to update and merge Mark's and my trunk-math branch. The patch is collaborated work of Mark Dickinson and me. It was mostly done a few months ago. The patch fixes a lot of loose ends and edge cases related to operations with NaN, INF, very small values and complex math.

The patch also adds acosh, asinh, atanh, log1p and copysign to all platforms. Finally it fixes differences between platforms like different results or exceptions for edge cases. Have fun :)
/external/python/cpython2/Lib/test/test_float.py
3b83549ea0b0c3e8d1919925a8875052e13367cf 05-Jan-2008 Guido van Rossum <guido@python.org> Patch #1725 by Mark Dickinson, fixes incorrect conversion of -1e1000
and adds errors for -0x.
/external/python/cpython2/Lib/test/test_float.py
0a8143f6462b491d3f12bfb899efd6e044e350be 19-Dec-2007 Christian Heimes <christian@cheimes.de> Applied patch #1635: Float patch for inf and nan on Windows (and other platforms).

The patch unifies float("inf") and repr(float("inf")) on all platforms.
/external/python/cpython2/Lib/test/test_float.py
f15c66e1439b9eecf813ed737cd6210048b0c094 11-Dec-2007 Christian Heimes <christian@cheimes.de> The new float repr causes too much trouble and pain. I'm disabling the feature until we have sorted out the issues on all machines. 64bit machines seem to have issues and Guido has reported even worse.
Guido: It's pretty bad actually -- repr(1e5) comes out as '1.0'... Ditto for
repr(1eN) for most N... Both in 2.6 and in 3.0...
/external/python/cpython2/Lib/test/test_float.py
284d9276250d78e8dfe59dc9a64cb0422265148b 10-Dec-2007 Christian Heimes <christian@cheimes.de> Backport of r59456:59458 from py3k to trunk
Issue #1580: New free format floating point representation based on "Floating-Point Printer Sample Code", by Robert G. Burger. For example repr(11./5) now returns '2.2' instead of '2.2000000000000002'.

Thanks to noam for the patch! I had to modify doubledigits.c slightly to support X64 and IA64 machines on Windows. I also added the new file to the three project files.
/external/python/cpython2/Lib/test/test_float.py
d8672aa8a4c925c69cac51561c68a9820cf97124 22-Aug-2007 Alex Martelli <aleaxit@gmail.com> Fix compile.c so that it records 0.0 and -0.0 as separate constants in a code
object's co_consts tuple; add a test to show that the previous behavior (where
these two constants were "collapsed" into one) causes serious malfunctioning.
/external/python/cpython2/Lib/test/test_float.py
348dc88097412cc229254f20f2759ce4cd192261 24-Aug-2006 Alex Martelli <aleaxit@gmail.com> Reverting the patch that tried to fix the issue whereby x**2 raises
OverflowError while x*x succeeds and produces infinity; apparently
these inconsistencies cannot be fixed across ``all'' platforms and
there's a widespread feeling that therefore ``every'' platform
should keep suffering forevermore. Ah well.
/external/python/cpython2/Lib/test/test_float.py
20362a820bd09617a33721191aa966416b03427c 23-Aug-2006 Alex Martelli <aleaxit@gmail.com> x**2 should about equal x*x (including for a float x such that the result is
inf) but didn't; added a test to test_float to verify that, and ignored the
ERANGE value for errno in the pow operation to make the new test pass (with
help from Marilyn Davis at the Google Python Sprint -- thanks!).
/external/python/cpython2/Lib/test/test_float.py
5d36a55eaa55d34bfaf91135920688d0cbc6fc5f 04-Jun-2005 Tim Peters <tim.peters@gmail.com> Whitespace normalization.
/external/python/cpython2/Lib/test/test_float.py
ba283e2b7f3d970246fbd53981b18234b6ca447c 27-May-2005 Michael W. Hudson <mwh@python.net> This is my patch:

[ 1181301 ] make float packing copy bytes when they can

which hasn't been reviewed, despite numerous threats to check it in
anyway if noone reviews it. Please read the diff on the checkin list,
at least!

The basic idea is to examine the bytes of some 'probe values' to see if
the current platform is a IEEE 754-ish platform, and if so
_PyFloat_{Pack,Unpack}{4,8} just copy bytes around.

The rest is hair for testing, and tests.
/external/python/cpython2/Lib/test/test_float.py