diff options
author | Waylan Limberg <waylan@gmail.com> | 2010-02-13 22:58:46 -0500 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2010-02-13 22:58:46 -0500 |
commit | 67ad9f66a00bdea21602428f748dfbb65220e67c (patch) | |
tree | ae8325a479ddbfc3e4c5ad8b5c279d411f394259 /tests | |
parent | 42b95d7ef8b1dd032c3f5cee0013f7bbe78df447 (diff) | |
download | markdown-67ad9f66a00bdea21602428f748dfbb65220e67c.tar.gz markdown-67ad9f66a00bdea21602428f748dfbb65220e67c.tar.bz2 markdown-67ad9f66a00bdea21602428f748dfbb65220e67c.zip |
Added run-tests.py script and added a helpful error message if nose is not installed. Note the run-tests script will be used by simply running 'nosetests' from the commandline, so the hack in 'tests/__init__.py' has been removed.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/__init__.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/__init__.py b/tests/__init__.py index d07ae7d..bad2a37 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -2,7 +2,12 @@ import os import markdown import codecs import difflib -import nose +try: + import nose +except ImportError: + raise ImportError, "The nose testing framework is required to run " \ + "Python-Markdown tests. Run `easy_install nose` " \ + "to install the latest version." import util from plugins import HtmlOutput, Markdown try: @@ -111,7 +116,3 @@ def TestSyntax(): def run(): nose.main(addplugins=[HtmlOutput(), Markdown()]) -# Hack to make nose run with extensions. Once extensions can be added from -# setup.cfg, the below line can be removed. -# See nose [Issue 271](http://code.google.com/p/python-nose/issues/detail?id=271) -run() |