Skip to content
Browse files

Skip notebookapp testing if jinja2 is not available.

  • Loading branch information...
1 parent bb2d35b commit 62ecaac3a243f9b28fb46db3dee2c09d5fd246cf @bfroehle committed Dec 18, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 IPython/testing/iptest.py
View
4 IPython/testing/iptest.py
@@ -162,6 +162,7 @@ def test_for(item, min_version=None, callback=extract_version):
have['cython'] = test_for('Cython')
have['oct2py'] = test_for('oct2py')
have['tornado'] = test_for('tornado.version_info', (2,1,0), callback=None)
+have['jinja2'] = test_for('jinja2')
have['wx'] = test_for('wx')
have['wx.aui'] = test_for('wx.aui')
have['azure'] = test_for('azure')
@@ -300,6 +301,9 @@ def make_exclude():
if not have['tornado']:
exclusions.append(ipjoin('frontend', 'html'))
+ if not have['jinja2']:
+ exclusions.append(ipjoin('frontend', 'html', 'notebook', 'notebookapp'))
+
if not have['rpy2'] or not have['numpy']:
exclusions.append(ipjoin('extensions', 'rmagic'))
exclusions.append(ipjoin('extensions', 'tests', 'test_rmagic'))

0 comments on commit 62ecaac

Please sign in to comment.
Something went wrong with that request. Please try again.