clawpack/pyclaw — pull request #121 by mparsani (2012-01-09 15:02:23+00:00)
Title: Fix conversion from string to integer in "Test petsc mpi interaction sanity test"

This commit will fix issue #120, i.e. the following error that has been discovered by running nosetests:

if int(stdout_data)!=np:
ValueError: invalid literal for int() with base 10: .....

In this pull request each character of 'stdout_data' is converted into an integer and a sum of all the element is computed. Afterwards, the result is compared with 'np' (line 22 in clawpack/pyclaw/test/test_sanity.py ).