mirror of
https://github.com/mapnik/mapnik.git
synced 2025-12-08 20:13:09 +00:00
nicer error message if python-nose is not installed
This commit is contained in:
parent
39b057e9e4
commit
1454e3ea97
@ -1,5 +1,13 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import sys
|
||||
|
||||
try:
|
||||
import nose
|
||||
except ImportError:
|
||||
sys.stderr.write("Unable to run python tests: the third party 'nose' module is required\nTo install 'nose' do:\n\tsudo pip install nose (or on debian systems: apt-get install python-nose\n")
|
||||
sys.exit(1)
|
||||
|
||||
from python_tests.utilities import TodoPlugin
|
||||
from nose.plugins.doctests import Doctest
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user