From c297e567792eeaea26020de7235358e95e22ae0d Mon Sep 17 00:00:00 2001 From: Kevin Van Brunt Date: Sun, 24 Nov 2019 22:49:15 -0500 Subject: Added # pragma: no cover to some code in rl_utils --- cmd2/rl_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cmd2/rl_utils.py') 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.") -- cgit v1.2.1