Add some missing no cover comments

This commit is contained in:
Anthony Sottile 2015-10-19 14:18:24 -07:00
parent 7d722714b7
commit 3472f2b3ce
3 changed files with 2 additions and 4 deletions

View file

@ -16,7 +16,7 @@ def install_environment(repo_cmd_runner, version='default'):
def run_hook(repo_cmd_runner, hook, file_args):
grep_command = 'grep -H -n -P'
if platform == 'darwin':
if platform == 'darwin': # pragma: no cover (osx)
grep_command = 'ggrep -H -n -P'
# For PCRE the entry is the regular expression to match

View file

@ -10,7 +10,7 @@ from pre_commit import five
# TODO: smell: import side-effects
try:
if not os.environ.get('TERM'):
if not os.environ.get('TERM'): # pragma: no cover (dumb terminal)
raise OSError('Cannot determine width without TERM')
COLS = int(
subprocess.Popen(