Use numpy.allclose instead of numpy.testing to support Ubuntu 10.04