[Numpy-svn] r5593 - in trunk: . numpy/core/tests

numpy-svn at scipy.org numpy-svn at scipy.org
Fri Aug 1 16:38:16 EDT 2008


Author: rkern
Date: 2008-08-01 15:38:16 -0500 (Fri, 01 Aug 2008)
New Revision: 5593

Modified:
   trunk/numpy/core/tests/test_umath.py
   trunk/setup.py
Log:
BUG: Fix email addresses.

Modified: trunk/numpy/core/tests/test_umath.py
===================================================================
--- trunk/numpy/core/tests/test_umath.py	2008-08-01 20:35:13 UTC (rev 5592)
+++ trunk/numpy/core/tests/test_umath.py	2008-08-01 20:38:16 UTC (rev 5593)
@@ -4,6 +4,11 @@
 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 @@
     
     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 @@
             ((-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 @@
 
     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 @@
     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)

Modified: trunk/setup.py
===================================================================
--- trunk/setup.py	2008-08-01 20:35:13 UTC (rev 5592)
+++ trunk/setup.py	2008-08-01 20:38:16 UTC (rev 5593)
@@ -76,7 +76,7 @@
         setup(
             name = 'numpy',
             maintainer = "NumPy Developers",
-            maintainer_email = "numpy-discussion at lists.sourceforge.net",
+            maintainer_email = "numpy-discussion at scipy.org",
             description = DOCLINES[0],
             long_description = "\n".join(DOCLINES[2:]),
             url = "http://numpy.scipy.org",
@@ -84,7 +84,7 @@
             license = 'BSD',
             classifiers=filter(None, CLASSIFIERS.split('\n')),
             author = "Travis E. Oliphant, et.al.",
-            author_email = "oliphant at ee.byu.edu",
+            author_email = "oliphant at enthought.com",
             platforms = ["Windows", "Linux", "Solaris", "Mac OS-X", "Unix"],
             configuration=configuration )
     finally:




More information about the Numpy-svn mailing list