[Numpy-svn] r3136 - trunk/numpy/core/tests

numpy-svn at scipy.org numpy-svn at scipy.org
Thu Sep 7 19:18:35 CDT 2006


Author: stefan
Date: 2006-09-07 19:18:21 -0500 (Thu, 07 Sep 2006)
New Revision: 3136

Modified:
   trunk/numpy/core/tests/test_regression.py
Log:
Add ticket for ticket #243.


Modified: trunk/numpy/core/tests/test_regression.py
===================================================================
--- trunk/numpy/core/tests/test_regression.py	2006-09-08 00:11:23 UTC (rev 3135)
+++ trunk/numpy/core/tests/test_regression.py	2006-09-08 00:18:21 UTC (rev 3136)
@@ -348,6 +348,13 @@
         assert_equal(N.array([[],[],[]],dtype=object).shape, (3,0))
         assert_equal(N.array([[3,4],[5,6],None],dtype=object).shape, (3,))
         
+    def check_mem_around(self,level=rlevel):
+        """Ticket #243"""
+        x = N.zeros((1,))
+        y = [0]
+        decimal = 6
+        N.around(abs(x-y),decimal) <= 10.0**(-decimal)
+        
     def check_character_array_strip(self,level=rlevel):
         """Ticket #246"""
         x = N.char.array(("x","x ","x  "))



More information about the Numpy-svn mailing list