Skip to content

Commit f4e56b1

Browse files
committed
Ignore test coverage on some lines
1 parent 5d21c50 commit f4e56b1

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

domdf_python_tools/compat.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def __exit__(self, *excinfo):
132132
.. versionadded:: $VERSION
133133
"""
134134

135-
if PYPY:
135+
if PYPY: # pragma: no cover
136136
if sys.version_info[:2] == (3, 6):
137137
PYPY36 = True
138138
elif sys.version_info[:2] == (3, 7):

domdf_python_tools/words.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -601,11 +601,11 @@ def __call__(self, n: int) -> str: # type: ignore
601601
:param n:
602602
"""
603603

604-
if PYPY: # pragma: no cover (!CPython)
604+
if PYPY: # pragma: no cover (!PyPy)
605605

606606
def __init__(self, singular: str, plural: str):
607607
super().__init__(ngettext, singular, plural)
608-
else:
608+
else: # pragma: no cover (!CPython)
609609

610610
def __new__(cls, singular: str, plural: str): # noqa: D102
611611
return functools.partial.__new__(cls, ngettext, singular, plural) # type: ignore

0 commit comments

Comments
 (0)