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

numpy-svn at scipy.org numpy-svn at scipy.org
Wed Oct 18 19:26:09 CDT 2006


Author: oliphant
Date: 2006-10-18 19:26:05 -0500 (Wed, 18 Oct 2006)
New Revision: 3362

Modified:
   trunk/numpy/core/tests/test_regression.py
Log:
Fix test.

Modified: trunk/numpy/core/tests/test_regression.py
===================================================================
--- trunk/numpy/core/tests/test_regression.py	2006-10-19 00:13:48 UTC (rev 3361)
+++ trunk/numpy/core/tests/test_regression.py	2006-10-19 00:26:05 UTC (rev 3362)
@@ -215,8 +215,8 @@
 
     def check_longfloat_repr(self,level=rlevel):
         """Ticket #112"""
-        a = N.exp(N.array([1000]),dtype=N.longfloat)
-        assert(str(a[0]) in str(a))
+        a = N.exp(N.array([1000],dtype=N.longfloat))
+        assert(str(a)[1:9] == str(a[0])[:8])
 
     def check_argmax(self,level=rlevel):
         """Ticket #119"""



More information about the Numpy-svn mailing list