[Scipy-svn] r3123 - in trunk/Lib: linalg/tests sparse/tests special/tests

scipy-svn@scip... scipy-svn@scip...
Fri Jun 29 02:00:58 CDT 2007


Author: wnbell
Date: 2007-06-29 02:00:29 -0500 (Fri, 29 Jun 2007)
New Revision: 3123

Modified:
   trunk/Lib/linalg/tests/test_iterative.py
   trunk/Lib/sparse/tests/test_sparse.py
   trunk/Lib/special/tests/test_basic.py
Log:
commented out some print statements in unittests



Modified: trunk/Lib/linalg/tests/test_iterative.py
===================================================================
--- trunk/Lib/linalg/tests/test_iterative.py	2007-06-29 06:59:02 UTC (rev 3122)
+++ trunk/Lib/linalg/tests/test_iterative.py	2007-06-29 07:00:29 UTC (rev 3123)
@@ -27,7 +27,7 @@
 def callback(x):
     global A, b
     res = b-dot(A,x)
-    print "||A.x - b|| = " + str(norm(dot(A,x)-b))
+    #print "||A.x - b|| = " + str(norm(dot(A,x)-b))
 
 class test_iterative_solvers(NumpyTestCase):
     def __init__(self, *args, **kwds):

Modified: trunk/Lib/sparse/tests/test_sparse.py
===================================================================
--- trunk/Lib/sparse/tests/test_sparse.py	2007-06-29 06:59:02 UTC (rev 3122)
+++ trunk/Lib/sparse/tests/test_sparse.py	2007-06-29 07:00:29 UTC (rev 3123)
@@ -516,15 +516,15 @@
             assert(e.A.dtype.type == mytype)
 
     def check_ensure_sorted_indices(self):
-        print 'sorting CSR indices'
+        #print 'sorting CSR indices'
         data = arange( 5 )
         col = array( [7, 2, 1, 5, 4] )
         ptr = [0, 3, 5]
         asp = csr_matrix( (data, col, ptr), dims = (2,10) )
         bsp = asp.copy()
-        print 'in\n', asp
+        #print 'in\n', asp
         asp.ensure_sorted_indices( inplace = True )
-        print 'out\n', asp
+        #print 'out\n', asp
         assert_array_equal(asp.indices,[1, 2, 7, 4, 5])
         for ir in range( asp.shape[0] ):
             for ic in range( asp.shape[1] ):
@@ -575,15 +575,15 @@
             assert(e.A.dtype.type == mytype)
 
     def check_ensure_sorted_indices(self):
-        print 'sorting CSC indices'
+        #print 'sorting CSC indices'
         data = arange( 5 )
         row = array( [7, 2, 1, 5, 4] )
         ptr = [0, 3, 5]
         asp = csc_matrix( (data, row, ptr), dims = (10,2) )
         bsp = asp.copy()
-        print 'in\n', asp
+        #print 'in\n', asp
         asp.ensure_sorted_indices( inplace = True )
-        print 'out\n', asp
+        #print 'out\n', asp
         assert_array_equal(asp.indices,[1, 2, 7, 4, 5])
         for ir in range( asp.shape[0] ):
             for ic in range( asp.shape[1] ):

Modified: trunk/Lib/special/tests/test_basic.py
===================================================================
--- trunk/Lib/special/tests/test_basic.py	2007-06-29 06:59:02 UTC (rev 3122)
+++ trunk/Lib/special/tests/test_basic.py	2007-06-29 07:00:29 UTC (rev 3123)
@@ -1814,7 +1814,7 @@
         psub = poly1d([2,-1])
         q = 4*rand()
         p = q-1 + 2*rand()
-        print "shifted jacobi p,q = ", p, q
+        #print "shifted jacobi p,q = ", p, q
         G0 = sh_jacobi(0,p,q)
         G1 = sh_jacobi(1,p,q)
         G2 = sh_jacobi(2,p,q)



More information about the Scipy-svn mailing list