Skip to content

Commit c297e56

Browse files
committed
Added # pragma: no cover to some code in rl_utils
1 parent bd14937 commit c297e56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd2/rl_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def pyreadline_remove_history_item(pos: int) -> None:
120120
# Load the readline lib so we can access members of it
121121
import ctypes
122122
readline_lib = ctypes.CDLL(readline.__file__)
123-
except AttributeError:
123+
except AttributeError: # pragma: no cover
124124
_rl_warn_reason = ("this application is running in a non-standard Python environment in\n"
125125
"which readline is not loaded dynamically from a shared library file.")
126126
else:
@@ -129,7 +129,7 @@ def pyreadline_remove_history_item(pos: int) -> None:
129129
vt100_support = True
130130

131131
# Check if readline was loaded
132-
if rl_type == RlType.NONE:
132+
if rl_type == RlType.NONE: # pragma: no cover
133133
if not _rl_warn_reason:
134134
_rl_warn_reason = ("no supported version of readline was found. To resolve this, install\n"
135135
"pyreadline on Windows or gnureadline on Mac.")

0 commit comments

Comments
 (0)