Permalink
Browse files

Add info if python-creole is not installed.

  • Loading branch information...
1 parent 66926a6 commit 2998390b2edb50ee70421074e64344283334a28c @jedie committed Sep 3, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 creole/tests/all_tests.py
@@ -5,7 +5,7 @@
collects all existing unittests
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
- :copyleft: 2008-2011 by python-creole team, see AUTHORS for more details.
+ :copyleft: 2008-2012 by python-creole team, see AUTHORS for more details.
:license: GNU GPL v3 or above, see LICENSE for more details.
"""
@@ -17,6 +17,12 @@
import time
import unittest
+try:
+ import creole
+except ImportError as err:
+ # running tests, but creole is not in sys.path
+ raise ImportError("Seems that pyhton-creole is not installed, correctly: %s" % err)
+
from creole.tests.test_creole2html import TestCreole2html, TestCreole2htmlMarkup, TestStr2Dict, TestDict2String
from creole.tests.test_cross_compare_all import CrossCompareTests
from creole.tests.test_cross_compare_creole import CrossCompareCreoleTests

0 comments on commit 2998390

Please sign in to comment.