Permalink
Browse files

Add skipif_not_matplotlib decorator

  • Loading branch information...
1 parent 84cb7c3 commit cd5f9563bed1139c83caebc3e15c41c4b7d7cb31 @jenshnielsen committed Jul 6, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 IPython/testing/decorators.py
@@ -313,6 +313,8 @@ def module_not_available(module):
# 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')

0 comments on commit cd5f956

Please sign in to comment.