summaryrefslogtreecommitdiff
path: root/cmd2/rl_utils.py
diff options
context:
space:
mode:
authorKevin Van Brunt <kmvanbrunt@gmail.com>2019-11-24 22:49:15 -0500
committerKevin Van Brunt <kmvanbrunt@gmail.com>2019-11-24 22:49:15 -0500
commitc297e567792eeaea26020de7235358e95e22ae0d (patch)
treee06ae602ce8305ee970534bf662faa2fc5194504 /cmd2/rl_utils.py
parentbd149372b422e4863d1ac98f79178a5a8428b54e (diff)
downloadcmd2-git-c297e567792eeaea26020de7235358e95e22ae0d.tar.gz
Added # pragma: no cover to some code in rl_utils
Diffstat (limited to 'cmd2/rl_utils.py')
-rw-r--r--cmd2/rl_utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd2/rl_utils.py b/cmd2/rl_utils.py
index 989b4b0a..8a92d18e 100644
--- a/cmd2/rl_utils.py
+++ b/cmd2/rl_utils.py
@@ -120,7 +120,7 @@ elif 'gnureadline' in sys.modules or 'readline' in sys.modules:
# Load the readline lib so we can access members of it
import ctypes
readline_lib = ctypes.CDLL(readline.__file__)
- except AttributeError:
+ except AttributeError: # pragma: no cover
_rl_warn_reason = ("this application is running in a non-standard Python environment in\n"
"which readline is not loaded dynamically from a shared library file.")
else:
@@ -129,7 +129,7 @@ elif 'gnureadline' in sys.modules or 'readline' in sys.modules:
vt100_support = True
# Check if readline was loaded
-if rl_type == RlType.NONE:
+if rl_type == RlType.NONE: # pragma: no cover
if not _rl_warn_reason:
_rl_warn_reason = ("no supported version of readline was found. To resolve this, install\n"
"pyreadline on Windows or gnureadline on Mac.")