Add pragma no cover

This commit is contained in:
Lena Wildervanck 2023-05-19 17:54:42 +02:00
parent 0355349b81
commit f3e30a0949

View file

@ -54,7 +54,7 @@ def _unstaged_changes_cleared(patch_dir: str) -> Generator[None, None, None]:
(sys.platform == 'darwin' or sys.platform == 'win32') and
os.path.exists('./.git/fsmonitor--daemon.ipc') and
cmd_output_b('git', 'fsmonitor--daemon', 'status')[0] == 0
):
): # pragma: no cover
logger.warning(
'The fsmonitor daemon is running; '
'a bug in the fsmonitor daemon sometimes causes data loss '