Skip to content

Commit

Permalink
Suppress coverage failures in selective code
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Dec 1, 2019
1 parent d7653d7 commit 3e61dba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions importlib_metadata/_compat.py
Expand Up @@ -125,13 +125,13 @@ class PyPy_repr:
sys.version_info < (3,)
)

def __compat_repr__(self):
def __compat_repr__(self): # pragma: nocover
def make_param(name):
value = getattr(self, name)
return '{name}={value!r}'.format(**locals())
params = ', '.join(map(make_param, self._fields))
return 'EntryPoint({params})'.format(**locals())

if affected:
if affected: # pragma: nocover
__repr__ = __compat_repr__
del affected

0 comments on commit 3e61dba

Please sign in to comment.