Skip to content

Commit

Permalink
don't fail tests if jinja2 is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed Jul 25, 2013
1 parent 9e8ebe4 commit e94465b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/unit/base/clone_unittest.cc.py
Expand Up @@ -8,9 +8,15 @@
# Written (W) 2013 Viktor Gal
# Copyright (C) 2013 Viktor Gal

import jinja2
import sys

try:
import jinja2
except ImportError:
print("Please install jinja2 for clone unit-tests");
sys.exit(0)


def get_class_list_content():
class_list_file = '../../src/shogun/base/class_list.cpp'
f = open(class_list_file, 'r')
Expand Down

0 comments on commit e94465b

Please sign in to comment.