TST: remove usage of ``np.set_printoptions`` in sparse test.

Closes https://github.com/numpy/numpy/issues/644