Skip to content

Commit 2727fdb

Browse files
committed
Ignore some blocks from coverage.
1 parent e8495d0 commit 2727fdb

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

consolekit/_readline.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
# In reality the whole module is unavailable.
1414
readline.set_history_length(0)
1515
readline.set_auto_history(False)
16-
except (ImportError, AttributeError):
16+
except (ImportError, AttributeError): # pragma: no cover
1717
# Attribute error on PyPy, ImportError on Windows etc.
1818
pass

consolekit/terminal_colours.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
"BEL",
100100
)
101101

102-
try:
102+
try: # pragma: no cover
103103
# 3rd party
104104
import colorama # type: ignore[import]
105105
colorama.init()

0 commit comments

Comments
 (0)