diff options
author | Anthon van der Neut <anthon@mnt.org> | 2015-01-12 18:01:52 +0100 |
---|---|---|
committer | Anthon van der Neut <anthon@mnt.org> | 2015-01-12 18:01:52 +0100 |
commit | 680b278b1da87bd5bd6ef5c84f24e59f9a7ed23a (patch) | |
tree | 31620ef87264816b4a493ec5b9d79c7dbc068543 /test/test_program.py | |
parent | 61cb7871d0f2824b99b45ff0eeba67ee8ae90972 (diff) | |
download | ruamel.std.argparse-680b278b1da87bd5bd6ef5c84f24e59f9a7ed23a.tar.gz |
better message when running tests without installing package
Diffstat (limited to 'test/test_program.py')
-rw-r--r-- | test/test_program.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/test/test_program.py b/test/test_program.py index 4ac1706..3d98b03 100644 --- a/test/test_program.py +++ b/test/test_program.py @@ -7,7 +7,10 @@ from __future__ import print_function import sys import pytest -from ruamel.std.argparse import ProgramBase, option, sub_parser, version +try: + from ruamel.std.argparse import ProgramBase, option, sub_parser, version +except ImportError: + print("you have to install ruamel.std.argparse to run the tests") class Program(ProgramBase): |