Question on tests

Kevin Keraudren kevin.keraudren at googlemail.com
Sat Jan 24 19:14:02 EST 2015


Hi,

I have two questions related to tests in scikit-image:

1) is there a way to run just a specific test file, as "make test" runs 
all tests?
I tried:
python skimage/feature/tests/test_peak.py
but it dies with "NameError: name 'version' is not defined"

2) What about using conditional skips for tests in skimage/viewer/tests 
otherwise these tests fail with "cannot connect to X server" if we are 
using ssh without -X?
StackOverflow suggests checking os.environ['DISPLAY'] 
(http://stackoverflow.com/questions/12122671/how-to-determine-from-a-python-application-if-x-server-x-forwarding-is-running)

Kind regards,

Kevin




More information about the scikit-image mailing list