Skip to content

Commit 41e5bc4

Browse files
Евгений БлиновЕвгений Блинов
authored andcommitted
Add windows coverage mutes
1 parent 56205af commit 41e5bc4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

suby/run.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def prepare_directory(directory: Optional[Union[str, Path]]) -> Optional[str]:
291291
raise WrongDirectoryError(f'The directory {raw_text!r} cannot be resolved because an intermediate component is not a directory.') from error # pragma: no cover (!Windows)
292292
raise WrongDirectoryError(f'The directory {raw_text!r} does not exist.') from error
293293
except NotADirectoryError as error:
294-
raise WrongDirectoryError(f'The directory {raw_text!r} cannot be resolved because an intermediate component is not a directory.') from error
294+
raise WrongDirectoryError(f'The directory {raw_text!r} cannot be resolved because an intermediate component is not a directory.') from error # pragma: no cover (Windows)
295295
except PermissionError as error:
296296
raise WrongDirectoryError(f'Permission denied when accessing directory {raw_text!r}.') from error
297297
except OSError as error:
@@ -300,7 +300,7 @@ def prepare_directory(directory: Optional[Union[str, Path]]) -> Optional[str]:
300300
if not stat.S_ISDIR(directory_stat.st_mode):
301301
raise WrongDirectoryError(f'The path {raw_text!r} exists but is not a directory.')
302302
if os.name != 'nt' and not os.access(cwd_path, os.X_OK):
303-
raise WrongDirectoryError(f'Permission denied when accessing directory {raw_text!r}.')
303+
raise WrongDirectoryError(f'Permission denied when accessing directory {raw_text!r}.') # pragma: no cover (Windows)
304304

305305
return str(cwd_path)
306306

0 commit comments

Comments
 (0)