Skip to content

Commit 907f6b6

Browse files
committed
avoiding coverage.
1 parent b33bfcf commit 907f6b6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/ansys/mapdl/core/logging.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ def _add_mapdl_instance_logger(self, name, mapdl_instance, level):
474474
instance_logger = PymapdlCustomAdapter(
475475
self._make_child_logger(name, level), mapdl_instance
476476
)
477-
elif not name:
477+
elif not name: # pragma: no cover
478478
instance_logger = PymapdlCustomAdapter(
479479
self._make_child_logger("NO_NAMED_YET", level), mapdl_instance
480480
)

src/ansys/mapdl/core/mapdl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -270,11 +270,11 @@ def inner_wrapper(*args, **kwargs):
270270
setattr(self, name, wrap_bc_listing_function(func))
271271

272272
@property
273-
def name(self):
273+
def name(self): # pragma: no cover
274274
raise NotImplementedError("Implemented by child classes.")
275275

276276
@name.setter
277-
def name(self, name):
277+
def name(self, name): # pragma: no cover
278278
raise AttributeError("The name of an instance cannot be changed.")
279279

280280
@property

0 commit comments

Comments
 (0)