Permalink
Browse files

small update of the test_sparse_hess tests (wording, commenting debug…

…ging output)
  • Loading branch information...
1 parent faeaa38 commit ec5d28afc2448de4291ade3959245c4636fa5f02 @b45ch1 committed Feb 21, 2012
Showing with 8 additions and 8 deletions.
  1. +8 −8 adolc/colpack/tests/test_wrapped_functions.py
@@ -117,8 +117,8 @@ def scalar_f2(x):
- def test_sparse_hess_2(self):
- """ This example was reported to raise a seg fault (see https://github.com/b45ch1/pyadolc/issues/10) """
+ def test_sparse_hess_no_repeat2(self):
+ """ This example has been reported to raise a seg fault (see https://github.com/b45ch1/pyadolc/issues/10) """
N = 3
@@ -146,11 +146,11 @@ def F(x):
values = numpy.asarray(result[3],dtype=float)
- print "Sparse hessian:"
- print "nnz:", nnz
- print "rind:", rind
- print "cind:", cind
- print "values:", values
+ # print "Sparse hessian:"
+ # print "nnz:", nnz
+ # print "rind:", rind
+ # print "cind:", cind
+ # print "values:", values
assert_array_almost_equal(nnz, N)
assert_array_almost_equal(rind, numpy.arange(N))
@@ -172,7 +172,7 @@ def scalar_f(x):
dependent(ay)
trace_off()
- options = numpy.array([1,1],dtype=int)
+ options = numpy.array([0,1],dtype=int)
# first call
result = colpack.sparse_hess_no_repeat(1,x,options)

0 comments on commit ec5d28a

Please sign in to comment.