scikits-image/scikits-image — pull request #314 by tonysyu (2012-09-12 04:09:07+00:00)
Title: Doctest fixes

Fixes doctests run with `nosetests --with-doctest`.

Closes #170

There are a couple of unresolved issues:
* Running `nosetests --with-doctest` gives a failure for `test_random_walker.test_2d_cg` (note that this is not a doctest). Directly running `test_random_walker` or running `nosetests` without the doctest flag works fine. Bizarre.
* This PR fails to fix multiple doctest failures where `xlabel`, `ylabel`, and `imshow` return objects that we don't (and probably don't want to) verify. We could, instead, write something like `imgplot = plt.imshow(image)`, which doesn't display output. This is kind of ugly though.
* Running `nosetests -with-doctest` gives a segmentation fault: I think this is some weird interaction between PyQt instances started by the viewer and io subpackages. Running the tests on individual files (as opposed to the entire test suite) in viewer and io doesn't cause problems.