Exclude abstract method code from coverage

This commit is contained in:
Andrew Murray 2024-01-14 22:29:56 +11:00
parent 10cf2f2651
commit c97b5c6f7a

View File

@ -184,7 +184,7 @@ class UnixViewer(Viewer):
@abc.abstractmethod
def get_command_ex(self, file: str, **options: Any) -> tuple[str, str]:
pass
pass # pragma: no cover
def get_command(self, file: str, **options: Any) -> str:
command = self.get_command_ex(file, **options)[0]