diff options
author | Robert Kern <robert.kern@gmail.com> | 2008-08-01 20:38:16 +0000 |
---|---|---|
committer | Robert Kern <robert.kern@gmail.com> | 2008-08-01 20:38:16 +0000 |
commit | 4957e5ed4ef51beb8687e64c4f9c5315602d86aa (patch) | |
tree | aa188326e2008e5ae08d6257b69413de75820d51 | |
parent | 12cfaa0bf758a78d854e917f357ac2913d4e73c6 (diff) | |
download | numpy-4957e5ed4ef51beb8687e64c4f9c5315602d86aa.tar.gz |
BUG: Fix email addresses.
-rw-r--r-- | numpy/core/tests/test_umath.py | 21 | ||||
-rwxr-xr-x | setup.py | 4 |
2 files changed, 15 insertions, 10 deletions
diff --git a/numpy/core/tests/test_umath.py b/numpy/core/tests/test_umath.py index eda52f961..8eb49f32b 100644 --- a/numpy/core/tests/test_umath.py +++ b/numpy/core/tests/test_umath.py @@ -4,6 +4,11 @@ import numpy as np import nose from numpy import inf, nan, pi +# Because of the way Python handles literals (e.g. (-0.0, 0.0) can give +# (-0.0, -0.0)). Use this for -0.0 instead. +negzero = -0.0 + + class TestDivision(TestCase): def test_division_int(self): # int division should return the floor of the result, a la Python @@ -277,8 +282,8 @@ class TestC99(object): def test_clog(self): for p, v, e in [ - ((-0., 0.), (-inf, pi), 'divide'), - ((+0., 0.), (-inf, 0.), 'XXX divide'), # fails on OSX? + ((negzero, 0.0), (-inf, pi), 'divide'), + ((0.0, 0.0), (-inf, 0.0), 'divide'), # fails on OSX? ((1., inf), (inf, pi/2), ''), ((1., nan), (nan, nan), 'invalid-optional'), ((-inf, 1.), (inf, pi), ''), @@ -289,13 +294,13 @@ class TestC99(object): ((-inf, nan), (inf, nan), ''), ((nan, 1.), (nan, nan), 'invalid-optional'), ((nan, inf), (inf, nan), ''), - ((+nan, nan), (nan, nan), 'XXX'), # raises 'invalid' on some platfs + ((+nan, nan), (nan, nan), ''), # raises 'invalid' on some platfs ]: yield self._check, np.log, p, v, e def test_csqrt(self): for p, v, e in [ - ((-0., 0.), (0.,0.), 'XXX'), # now (-0., 0.) + ((negzero, 0.0), (0.0, 0.0), ''), # now (-0., 0.) ((0., 0.), (0.,0.), ''), ((1., inf), (inf,inf), 'XXX invalid'), # now (inf, nan) ((nan, inf), (inf,inf), 'XXX'), # now (nan, nan) @@ -310,10 +315,10 @@ class TestC99(object): def test_cacos(self): for p, v, e in [ - ((0., 0.), (pi/2, -0.), 'XXX'), # now (-0., 0.) - ((-0., 0.), (pi/2, -0.), ''), + ((0., 0.), (pi/2, negzero), 'XXX'), # now (-0., 0.) + ((negzero, 0.0), (pi/2, negzero), ''), ((0., nan), (pi/2, nan), 'XXX'), # now (nan, nan) - ((-0., nan), (pi/2, nan), 'XXX'), # now (nan, nan) + ((negzero, nan), (pi/2, nan), ''), # now (nan, nan) ((1., inf), (pi/2, -inf), 'XXX'), # now (nan, -inf) ((1., nan), (nan, nan), 'invalid-optional'), ((-inf, 1.), (pi, -inf), 'XXX'), # now (nan, -inf) @@ -331,7 +336,7 @@ class TestC99(object): def test_cacosh(self): for p, v, e in [ ((0., 0), (0, pi/2), ''), - ((-0., 0), (0, pi/2), ''), + ((negzero, 0), (0, pi/2), ''), ((1., inf), (inf, pi/2), 'XXX'), # now: (nan, nan) ((1., nan), (nan, nan), 'invalid-optional'), ((-inf, 1.), (inf, pi), 'XXX'), # now: (inf, nan) @@ -76,7 +76,7 @@ def setup_package(): setup( name = 'numpy', maintainer = "NumPy Developers", - maintainer_email = "numpy-discussion@lists.sourceforge.net", + maintainer_email = "numpy-discussion@scipy.org", description = DOCLINES[0], long_description = "\n".join(DOCLINES[2:]), url = "http://numpy.scipy.org", @@ -84,7 +84,7 @@ def setup_package(): license = 'BSD', classifiers=filter(None, CLASSIFIERS.split('\n')), author = "Travis E. Oliphant, et.al.", - author_email = "oliphant@ee.byu.edu", + author_email = "oliphant@enthought.com", platforms = ["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"], configuration=configuration ) finally: |