mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-07 11:28:14 +08:00
Handle more warnings
Punt on the issue of warnings with the minimum build Handle warnings in measure pkg Fix the rank filter test by forcing a random seed in the function Compare as boolean in imread test Import loadmat in test_setup to avoid warning Use a setup method for imread plugin test Revoke unintended changes Fix indentation to appease jni More indentation fixes Fix unintentional comment out
This commit is contained in:
@@ -179,12 +179,14 @@ def mono_check(plugin, fmt='png'):
|
||||
|
||||
|
||||
def setup_test():
|
||||
warnings.simplefilter('error')
|
||||
with all_warnings():
|
||||
warnings.simplefilter('error')
|
||||
with all_warnings():
|
||||
from scipy import signal, ndimage, special, optimize, linalg
|
||||
from scipy.io import loadmat
|
||||
from skimage import filter, viewer, data
|
||||
data.moon()
|
||||
|
||||
if os.environ.get('TRAVIS_PYTHON_VERSION', None) == '2.7':
|
||||
warnings.simplefilter('default')
|
||||
|
||||
if __name__ == '__main__':
|
||||
color_check('pil')
|
||||
|
||||
Reference in New Issue
Block a user