History log of /external/python/cpython2/Lib/test/test_math.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
32e23e739f858fcf47332e437d6c4d4f14b2b697 03-Nov-2013 Serhiy Storchaka <storchaka@gmail.com> Issue #18702: All skipped tests now reported as skipped.
/external/python/cpython2/Lib/test/test_math.py
36f6e2c9e0cfd1bab83d6ae1d192d4951ccc0160 13-Oct-2013 Mark Dickinson <dickinsm@gmail.com> Issue #18739: Fix inconsistent results from math.log(n) and math.log(long(n))
/external/python/cpython2/Lib/test/test_math.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_math.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_math.py
ba303c82d117d81101308ee241dab02cf8864169 07-Jul-2010 Benjamin Peterson <benjamin@python.org> these tests are the result of cpython's incorrect implementation
/external/python/cpython2/Lib/test/test_math.py
bace6764fac7800883029d7f34dc56d17a1530a0 05-Jul-2010 Benjamin Peterson <benjamin@python.org> be more generous to implementations that have implemented correctly
/external/python/cpython2/Lib/test/test_math.py
e979ec8fbf873efc266e665ae946df30dea97f6e 13-Jun-2010 Mark Dickinson <dickinsm@gmail.com> Issue #8986: erfc was raising OverflowError on Linux for arguments in
the (approximate) range (-27.3, 30.0), as a result of an escaped errno
value.
/external/python/cpython2/Lib/test/test_math.py
62f7e8b0b8e068a0281d737dba73d063cad4b31c 12-May-2010 Mark Dickinson <dickinsm@gmail.com> Fix unused variable in test_factorial.
/external/python/cpython2/Lib/test/test_math.py
28d4f9e6681094037a45cd0c469e9abae7a2e4f0 07-Feb-2010 Mark Dickinson <dickinsm@gmail.com> testCopysign was defined twice in test_math; combine the definitions
/external/python/cpython2/Lib/test/test_math.py
ed284991e1f6174afd2600163d884055cda6328f 20-Dec-2009 Mark Dickinson <dickinsm@gmail.com> Silence -3 warnings. Thanks Florent Xicluna.
/external/python/cpython2/Lib/test/test_math.py
9cae178f21745eaa2cbefb74b925bea1322a2baa 16-Dec-2009 Mark Dickinson <dickinsm@gmail.com> Issue #3366: Add expm1 function to math module. Thanks Eric Smith for
testing on Windows.
/external/python/cpython2/Lib/test/test_math.py
9be87bc992465abaa572f86fcf4e375192617a6f 11-Dec-2009 Mark Dickinson <dickinsm@gmail.com> Issue #3366: Add lgamma function to math module.
/external/python/cpython2/Lib/test/test_math.py
59ca92093c548af1acb4bc3e9e9dc3649ece513d 17-Oct-2009 Mark Dickinson <dickinsm@gmail.com> test_math ulp computation was wrong on big-endian systems
/external/python/cpython2/Lib/test/test_math.py
8ca7482cc93946e88ae09e16d076f5e556f2e701 30-Sep-2009 Mark Dickinson <dickinsm@gmail.com> Fix buggy accuracy test
/external/python/cpython2/Lib/test/test_math.py
b93fff0a57cf9a39c47d29ec8011bd2b14b506ac 28-Sep-2009 Mark Dickinson <dickinsm@gmail.com> Issue #3366: Add gamma function to math module.
(lgamma, erf and erfc to follow).
/external/python/cpython2/Lib/test/test_math.py
2985dbb52613f97b982987f980c765781c00e657 18-Sep-2009 Mark Dickinson <dickinsm@gmail.com> Use skipUnless to skip math module tests on non-IEEE 754 platforms.
/external/python/cpython2/Lib/test/test_math.py
5c8da86f3a515ce1a6d5f27fd15e3c5f4d8e931e 01-Jul-2009 Benjamin Peterson <benjamin@python.org> convert usage of fail* to assert*
/external/python/cpython2/Lib/test/test_math.py
0badeef93e608db0cf2bb648501c43c8ef3b0d56 24-Apr-2009 Mark Dickinson <dickinsm@gmail.com> Remove unnecessary double negative
/external/python/cpython2/Lib/test/test_math.py
6ab635a4f49a95c82c8104b919aaf32cf5760f88 24-Apr-2009 Mark Dickinson <dickinsm@gmail.com> Issue #5593: Use more robust test for double-rounding in test_fsum.
While we're at it, use new unittest.skipUnless decorator to
implement skipping for that test.
/external/python/cpython2/Lib/test/test_math.py
0f6414a0d6c4f09ec2ab88cef801b2475f6c84a3 31-Jul-2008 Mark Dickinson <dickinsm@gmail.com> Rename testSum to testFsum and move it to proper place in test_math.py
/external/python/cpython2/Lib/test/test_math.py
fef6b13c3261b9c91d38247f5ff99a411d71ab13 30-Jul-2008 Mark Dickinson <dickinsm@gmail.com> Rename math.sum to math.fsum
/external/python/cpython2/Lib/test/test_math.py
ff5f16e4e55b53e2e00cbdcd9c77e08bde06812f 29-Jul-2008 Mark Dickinson <dickinsm@gmail.com> More modifications to tests for math.sum: replace the Python
version of msum by a version using a different algorithm, and
use the new float.fromhex method to specify test results exactly.
/external/python/cpython2/Lib/test/test_math.py
3e9c60c5fe86c99cc9f9562c0b1711e6b34ee3e3 27-Jul-2008 Mark Dickinson <dickinsm@gmail.com> Remove math.sum tests related to overflow, special values, and behaviour
near the extremes of the floating-point range. (The behaviour of math.sum
should be regarded as undefined in these cases.)
/external/python/cpython2/Lib/test/test_math.py
ecbdd2e9b0a5af20a2b8784ac91338739b99ce3d 09-Jun-2008 Raymond Hettinger <python@rcn.com> Issue #2138: Add math.factorial().
/external/python/cpython2/Lib/test/test_math.py
8df4e22a2841e59fb4b7e14a846be980115605ba 30-May-2008 Mark Dickinson <dickinsm@gmail.com> Fix typo in testSum
/external/python/cpython2/Lib/test/test_math.py
badd7da622460b8dd8405545f59da1e2c0ef79e6 23-May-2008 Mark Dickinson <dickinsm@gmail.com> Skip math.sum tests on non IEEE 754 platforms, and on IEEE 754 platforms
that exhibit the problem described in issue #2937.
/external/python/cpython2/Lib/test/test_math.py
d05583525397a3e86885436f0e71d6995c608e43 23-May-2008 Mark Dickinson <dickinsm@gmail.com> Better error reporting in test_math.py
/external/python/cpython2/Lib/test/test_math.py
c11c3391b0fd3bb0c92526f0aa0c8232963416be 23-May-2008 Mark Dickinson <dickinsm@gmail.com> Add tests for math.sum (Issue #2819)
/external/python/cpython2/Lib/test/test_math.py
f8476c15730939c4ee64d94f08c2d6e40b09195d 09-May-2008 Mark Dickinson <dickinsm@gmail.com> Issue #2487. math.ldexp(x, n) raised OverflowError when n was large and
negative; fix to return an (appropriately signed) zero instead.
/external/python/cpython2/Lib/test/test_math.py
d6d5148b44cfd6472a3ff319b15f8c3f9953bba5 20-Apr-2008 Mark Dickinson <dickinsm@gmail.com> Add test for tanh(-0.) == -0. on IEEE 754 systems
/external/python/cpython2/Lib/test/test_math.py
cec3f138d8cd6c5e3fd78200119a94d59440cfad 20-Apr-2008 Mark Dickinson <dickinsm@gmail.com> Yet more explicit special case handling to make
math.pow behave on alpha Tru64. All IEEE 754
special values are now handled directly; only
the finite**finite case is handled by libm.
/external/python/cpython2/Lib/test/test_math.py
9f99d705138ddbea874ab41adc52becc7d9a02d5 20-Apr-2008 Mark Dickinson <dickinsm@gmail.com> Report additional diagnostic information in
test_math, to help track down debian-alpha
buildbot failure.
/external/python/cpython2/Lib/test/test_math.py
e941d97d123377c9e2c9f4cfec2e9827df0467c4 19-Apr-2008 Mark Dickinson <dickinsm@gmail.com> Additional tests for math.pow, and extra special-case
handling code in math.pow, in the hope of making all
tests pass on the alpha Tru64 buildbot.
/external/python/cpython2/Lib/test/test_math.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_math.py
ca2b69f765dd8a7f5c8e5c5346572519a8768ec4 01-Feb-2008 Jeffrey Yasskin <jyasskin@gmail.com> Move __builtins__.trunc() to math.trunc() per
http://mail.python.org/pipermail/python-dev/2008-January/076626.html and issue
1965.
/external/python/cpython2/Lib/test/test_math.py
9871d8fe22566acf68bf336d04d3a1dbd51f3269 05-Jan-2008 Jeffrey Yasskin <jyasskin@gmail.com> Continue rolling back pep-3141 changes that changed behavior from 2.5. This
round included:
* Revert round to its 2.6 behavior (half away from 0).
* Because round, floor, and ceil always return float again, it's no
longer necessary to have them delegate to __xxx___, so I've ripped
that out of their implementations and the Real ABC. This also helps
in implementing types that work in both 2.6 and 3.0: you return int
from the __xxx__ methods, and let it get enabled by the version
upgrade.
* Make pow(-1, .5) raise a ValueError again.
/external/python/cpython2/Lib/test/test_math.py
737c73f96ff52cda4b433d25f887525442b7b430 04-Jan-2008 Jeffrey Yasskin <jyasskin@gmail.com> Make math.{floor,ceil}({int,long}) return float again for backwards
compatibility after r59671 made them return integral types.
/external/python/cpython2/Lib/test/test_math.py
eebb79cc690e8ab02cb7f630cfbc046df2c0f4da 03-Jan-2008 Christian Heimes <christian@cheimes.de> Added copysign(x, y) function to the math module
/external/python/cpython2/Lib/test/test_math.py
e2ca4245c90a4e41e45d943d4df2eacf7ef62962 03-Jan-2008 Christian Heimes <christian@cheimes.de> Added math.isinf() and math.isnan()
/external/python/cpython2/Lib/test/test_math.py
2f3c16be73a8562d357b9b13bbb8088e275840a7 03-Jan-2008 Jeffrey Yasskin <jyasskin@gmail.com> Backport PEP 3141 from the py3k branch to the trunk. This includes r50877 (just
the complex_pow part), r56649, r56652, r56715, r57296, r57302, r57359, r57361,
r57372, r57738, r57739, r58017, r58039, r58040, and r59390, and new
documentation. The only significant difference is that round(x) returns a float
to preserve backward-compatibility. See http://bugs.python.org/issue1689.
/external/python/cpython2/Lib/test/test_math.py
ec2ce9bbaeb9d21fe0390fea7dca8e04be526a23 27-Jul-2007 Nick Coghlan <ncoghlan@gmail.com> Make test_math error messages more meaningful for small discrepancies in results
/external/python/cpython2/Lib/test/test_math.py
00f2029cd57ded3be287041b527c84cd8442afd5 26-Jul-2007 Nick Coghlan <ncoghlan@gmail.com> Add explicit test for a misbehaving math.floor
/external/python/cpython2/Lib/test/test_math.py
abd8a336a3ab390a2ea4b15a0ecd187e482001af 03-Nov-2006 Tim Peters <tim.peters@gmail.com> Whitespace normalization.
/external/python/cpython2/Lib/test/test_math.py
92911bfc6a7d501569031cd3e2b4ecc4ac273bd1 29-Oct-2006 Walter Dörwald <walter@livinglogic.de> Add tests for basic argument errors.
/external/python/cpython2/Lib/test/test_math.py
2f03760a9836916a453719f37f070bd6b2aed86b 28-Oct-2006 Georg Brandl <georg@python.org> Convert test_math to unittest.
/external/python/cpython2/Lib/test/test_math.py
70a6b49821a3226f55e9716f32d802d06640cb89 12-Feb-2004 Walter Dörwald <walter@livinglogic.de> Replace backticks with repr() or "%r"

From SF patch #852334.
/external/python/cpython2/Lib/test/test_math.py
72a6ddb5eedc69c67ffd03f17bc47fe35bca5ff3 18-Dec-2002 Raymond Hettinger <python@rcn.com> Expand log() tests to include long integers.
/external/python/cpython2/Lib/test/test_math.py
866964c3a3823c8d42c51a41c5c7264a569200b4 14-Dec-2002 Raymond Hettinger <python@rcn.com> Apply SF patch 652930: Add optional base argument to math.log(x[, base]).
/external/python/cpython2/Lib/test/test_math.py
408b6d34de2b1a6ba690557def435adce9314184 31-Jul-2002 Barry Warsaw <barry@python.org> Complete the absolute import patch for the test suite. All relative
imports of test modules now import from the test package. Other
related oddities are also fixed (like DeprecationWarning filters that
weren't specifying the full import part, etc.). Also did a general
code cleanup to remove all "from test.test_support import *"'s. Other
from...import *'s weren't changed.
/external/python/cpython2/Lib/test/test_math.py
04f357cffef6d764f2f0ff2671dabde75ec250d1 23-Jul-2002 Barry Warsaw <barry@python.org> Get rid of relative imports in all unittests. Now anything that
imports e.g. test_support must do so using an absolute package name
such as "import test.test_support" or "from test import test_support".

This also updates the README in Lib/test, and gets rid of the
duplicate data dirctory in Lib/test/data (replaced by
Lib/email/test/data).

Now Tim and Jack can have at it. :)
/external/python/cpython2/Lib/test/test_math.py
8ac1495a6a1d18111a626cec0c7f2eb67df3edb3 23-May-2002 Tim Peters <tim.peters@gmail.com> Whitespace normalization.
/external/python/cpython2/Lib/test/test_math.py
64108afa609104c9d63e70a0ec4b50da318bd7f9 13-May-2002 Raymond Hettinger <python@rcn.com> Adds tests for degrees() and radians() functions added to mathmodule.
Closes patch 552452 and feature request 426539.
/external/python/cpython2/Lib/test/test_math.py
a40c793d06ee2b42a5013015352616b4ca6b288b 06-Sep-2001 Tim Peters <tim.peters@gmail.com> Rework the way we try to check for libm overflow, given that C99 no longer
requires that errno ever get set, and it looks like glibc is already
playing that game. New rules:

+ Never use HUGE_VAL. Use the new Py_HUGE_VAL instead.

+ Never believe errno. If overflow is the only thing you're interested in,
use the new Py_OVERFLOWED(x) macro. If you're interested in any libm
errors, use the new Py_SET_ERANGE_IF_OVERFLOW(x) macro, which attempts
to set errno the way C89 said it worked.

Unfortunately, none of these are reliable, but they work on Windows and I
*expect* under glibc too.
/external/python/cpython2/Lib/test/test_math.py
4642cb9ac9636dec1e939a75f5da3fc263b51326 12-Apr-2001 Tim Peters <tim.peters@gmail.com> Reverting the "unixware7" patch: atan2(0, 1) should be 0, regardless of
platform. If it returns pi on the unixware7 platform, they have a bug in
their libm atan2.
/external/python/cpython2/Lib/test/test_math.py
2242f2fbd0d50546ad79e800efbc6f0a2334bd0b 11-Apr-2001 Guido van Rossum <guido@python.org> Unixware 7 support by Billy G. Allie (SF patch 413011)
/external/python/cpython2/Lib/test/test_math.py
132dce22469f476f399d1bbc6d1cc2f7ba0110cc 13-Dec-2000 Fred Drake <fdrake@acm.org> Update the code to better reflect recommended style:

Use != instead of <> since <> is documented as "obsolescent".
Use "is" and "is not" when comparing with None or type objects.
/external/python/cpython2/Lib/test/test_math.py
004d5e6880940ddbb38460986ac62ee0f1bae97d 23-Oct-2000 Fred Drake <fdrake@acm.org> Make reindent.py happy (convert everything to 4-space indents!).
/external/python/cpython2/Lib/test/test_math.py
98c8184f2faf72f6a061f45df579e0eee4d510cf 16-Oct-2000 Tim Peters <tim.peters@gmail.com> Test for math.* exceptional behavior only in verbose mode, so that the
oddball platforms (where, e.g., math.exp(+huge) still fails to raise
OverflowError) don't fail the std test suite when run normally.
/external/python/cpython2/Lib/test/test_math.py
cb5b5bac11165e8bca4f518c8de8ebfa96601e14 12-Oct-2000 Tim Peters <tim.peters@gmail.com> A Mystery: I somehow managed to delete the last two lines of my test_math.py
changes. Here restoring them.
/external/python/cpython2/Lib/test/test_math.py
1d120619d475b1b892585b812dc0d28bd389d097 12-Oct-2000 Tim Peters <tim.peters@gmail.com> Stop raising OverflowError on underflows reported by libm (errno==ERANGE and
libm result is 0). Cautiously add a few libm exception test cases:
1. That exp(-huge) returns 0 without exception.
2. That exp(+huge) triggers OverflowError.
3. That sqrt(-1) raises ValueError specifically (apparently under glibc linked
with -lieee, it was raising OverflowError due to an accident of the way
mathmodule.c's CHECK() macro happened to deal with Infs and NaNs under gcc).
/external/python/cpython2/Lib/test/test_math.py
10e1bf2f64b77f3a71157c72de19265870cdeb5f 10-Aug-2000 Peter Schneider-Kamp <nowonder@nowonder.de> remove all occurence of math.rint() from the sources

(and yes, "Currintly" also counts <0.5 wink>)
/external/python/cpython2/Lib/test/test_math.py
8eded195aafd589b54b51412fd1ca61f6e932bbe 01-Jun-2000 Fred Drake <fdrake@acm.org> Trent Mick <trentm@activestate.com>:
Fix test of the "math" module so it does not break on platforms that do
not offer rint(); just skip that portion of the test in that case.
/external/python/cpython2/Lib/test/test_math.py
71260b846e9ecafb21e52fd3f5b9ac74ebc8c1e6 11-May-2000 Guido van Rossum <guido@python.org> Added math.rint() -- round according to current IEEE754 mode
/external/python/cpython2/Lib/test/test_math.py
5ab007b098011714d80441397c9f34d747539a2d 29-Aug-1996 Guido van Rossum <guido@python.org> Subtle hack so the eps printed is not dependent on the formatting
habits of the C library we happen to use...
/external/python/cpython2/Lib/test/test_math.py
fcce630a7dfa2e1c10b87be44966196b693bd743 08-Aug-1996 Guido van Rossum <guido@python.org> Added test for math module
/external/python/cpython2/Lib/test/test_math.py