Skip to content

Commit

Permalink
add pragma nocover
Browse files Browse the repository at this point in the history
  • Loading branch information
klmcadams committed Jan 23, 2025
1 parent 3026063 commit ffc0855
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/ansys/mechanical/core/mechanical.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
import ansys.api.mechanical.v0.mechanical_pb2_grpc as mechanical_pb2_grpc

try:
import ansys.platform.instancemanagement as pypim # noqa: F401
from ansys.platform.instancemanagement import Instance # noqa: F401
import ansys.platform.instancemanagement as pypim # pragma: nocover noqa: F401
from ansys.platform.instancemanagement import Instance # pragma: nocover noqa: F401

HAS_ANSYS_PIM = True
"""Whether or not PyPIM exists."""

Check warning on line 46 in src/ansys/mechanical/core/mechanical.py

View check run for this annotation

Codecov / codecov/patch

src/ansys/mechanical/core/mechanical.py#L45-L46

Added lines #L45 - L46 were not covered by tests
Expand Down
2 changes: 1 addition & 1 deletion src/ansys/mechanical/core/pool.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
import warnings

try:
import ansys.platform.instancemanagement as pypim # noqa: F401
import ansys.platform.instancemanagement as pypim # pragma: nocover noqa: F401

HAS_ANSYS_PIM = True
"""Whether or not PyPIM exists."""

Check warning on line 33 in src/ansys/mechanical/core/pool.py

View check run for this annotation

Codecov / codecov/patch

src/ansys/mechanical/core/pool.py#L32-L33

Added lines #L32 - L33 were not covered by tests
Expand Down

0 comments on commit ffc0855

Please sign in to comment.