From 23b643ae55106d4a64f44626ccd91037f84be231 Mon Sep 17 00:00:00 2001 From: Steven Silvester Date: Mon, 16 Feb 2015 21:33:09 -0600 Subject: [PATCH] Fix behavior of skimage.doctest when nose is not found --- skimage/__init__.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/skimage/__init__.py b/skimage/__init__.py index 303ea34f..8f386682 100644 --- a/skimage/__init__.py +++ b/skimage/__init__.py @@ -75,17 +75,12 @@ else: try: _imp.find_module('nose') except ImportError: - def _test(verbose=False): + def _test(doctest=False, verbose=False): """This would run all unit tests, but nose couldn't be imported so the test suite can not run. """ raise ImportError("Could not load nose. Unit tests not available.") - def _doctest(verbose=False): - """This would run all doc tests, but nose couldn't be - imported so the test suite can not run. - """ - raise ImportError("Could not load nose. Doctests not available.") else: def _test(doctest=False, verbose=False): """Run all unit tests."""