From cd5f9563bed1139c83caebc3e15c41c4b7d7cb31 2011-09-11 16:46:55 From: Jens Hedegaard Nielsen Date: 2011-09-11 16:46:55 Subject: [PATCH] Add skipif_not_matplotlib decorator --- diff --git a/IPython/testing/decorators.py b/IPython/testing/decorators.py index 8170730..040b97a 100644 --- a/IPython/testing/decorators.py +++ b/IPython/testing/decorators.py @@ -313,6 +313,8 @@ skip_if_not_osx = skipif(sys.platform != 'darwin', # Other skip decorators skipif_not_numpy = skipif(module_not_available('numpy'),"This test requires numpy") +skipif_not_matplotlib = skipif(module_not_available('matplotlib'),"This test requires matplotlib") + skipif_not_sympy = skipif(module_not_available('sympy'),"This test requires sympy") skip_known_failure = knownfailureif(True,'This test is known to fail')