Skip to content

Commit

Permalink
jp2_extractor.py: a quick coverage fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexwlchan committed Mar 7, 2018
1 parent 9660b43 commit 0ed1b0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@ show_missing = True
exclude_lines =
pragma: no cover
assert False, "Should not be reachable"
else: # unreachable
2 changes: 1 addition & 1 deletion loris/jp2_extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ def _parse_colour_specification_box(self, jp2):
return (['gray', 'color'], profile_bytes)

# This should be unreachable; we include it for completeness.
else:
else: # unreachable
assert False, meth

def _parse_siz_marker_segment(self, jp2):
Expand Down

0 comments on commit 0ed1b0f

Please sign in to comment.