Skip to content

Commit

Permalink
Ignores with tests unreachable code (i.e. Pressing Ctrl+C)
Browse files Browse the repository at this point in the history
  • Loading branch information
derphilipp committed Feb 3, 2016
1 parent 59bad3e commit dc4ce06
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pwgrep/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def run(args):
return any_match


def signal_terminal_handler(signal_nr, _):
def signal_terminal_handler(signal_nr, _): # pragma: no cover
"""
Handler for signals; Quits program with correct exit code.
Expand All @@ -54,7 +54,7 @@ def main(args=sys.argv[1:]):

try:
any_match = run(args)
except KeyboardInterrupt:
except KeyboardInterrupt: # pragma: no cover
sys.exit(1)

if any_match:
Expand Down

0 comments on commit dc4ce06

Please sign in to comment.