io: Add null-plugin to simplify testing.

This commit is contained in:
Stefan van der Walt
2009-11-12 22:34:19 +02:00
parent 44c6c19234
commit 0f604fa07e
3 changed files with 19 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
__all__ = ['imshow', '_app_show']
import warnings
message = '''\
No plugin has been loaded. Please refer to
scikits.image.io.plugins()
for a list of available plugins.'''
def imshow(*args, **kwargs):
warnings.warn(RuntimeWarning(message))
_app_show = imshow