Skip to content
This repository has been archived by the owner on Mar 29, 2022. It is now read-only.

Commit

Permalink
Fix coverage
Browse files Browse the repository at this point in the history
It's too hard to ensure in which order files are picked up by `os.listdir`
and therefore passed to this function. On my system, I had 100% coverage,
but on Travis, the 4th ``return`` is not covered. So just exclude it all.
  • Loading branch information
vfaronov committed Mar 12, 2017
1 parent 35d1ed7 commit 7b24c59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion httpolice/inputs/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def _exchange_time(exchange, hint):
return hint


def _sniff_direction(path1, path2):
def _sniff_direction(path1, path2): # pragma: no cover
if path1 and _sniff_outbound(path1):
return (path2, path1)
elif path2 and _sniff_outbound(path2):
Expand Down

0 comments on commit 7b24c59

Please sign in to comment.