summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/test_argparse.py6
-rw-r--r--test/test_program.py5
2 files changed, 9 insertions, 2 deletions
diff --git a/test/test_argparse.py b/test/test_argparse.py
index 6c3d765..9cc818b 100644
--- a/test/test_argparse.py
+++ b/test/test_argparse.py
@@ -3,7 +3,11 @@
import pytest
-from ruamel.std.argparse import argparse, CountAction, SmartFormatter
+try:
+ from ruamel.std.argparse import argparse, CountAction, SmartFormatter
+except ImportError:
+ print("you have to install ruamel.std.argparse to run the tests")
+
from textwrap import dedent
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):