Skip to content

Commit

Permalink
Exclude some lines from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
flacjacket committed May 15, 2021
1 parent 6e0f14f commit e02983c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ source =
[report]
exclude_lines =
if TYPE_CHECKING:
if __name__ == "__main__":
except ImportError:
2 changes: 1 addition & 1 deletion pywayland/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

try:
from ._ffi import ffi, lib # noqa: F401
except ImportError: # pragma: no cover
except ImportError:
raise ImportError(
"No module named pywayland._ffi, be sure to run `python ./pywayland/ffi_build.py`"
)
Expand Down

0 comments on commit e02983c

Please sign in to comment.