Skip to content

Commit

Permalink
Ignore compatibility module in coverage measurement.
Browse files Browse the repository at this point in the history
  • Loading branch information
aaugustin committed Mar 29, 2023
1 parent 6df903c commit 399db68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ branch = True
omit =
# */websockets matches src/websockets and .tox/**/site-packages/websockets
*/websockets/__main__.py
*/websockets/legacy/compatibility.py
tests/maxi_cov.py

[coverage:paths]
Expand Down
2 changes: 1 addition & 1 deletion src/websockets/legacy/compatibility.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ def loop_if_py_lt_38(loop: asyncio.AbstractEventLoop) -> Dict[str, Any]:
"""
return {}

else: # pragma: no cover
else:

def loop_if_py_lt_38(loop: asyncio.AbstractEventLoop) -> Dict[str, Any]:
"""
Expand Down

0 comments on commit 399db68

Please sign in to comment.