Skip to content

Commit

Permalink
exclude lines that may be missed in hypothesis tests
Browse files Browse the repository at this point in the history
  • Loading branch information
cleder committed May 1, 2024
1 parent 5c91e5d commit e705ad5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/hypothesis/test_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,13 @@ def test_fuzz_compare_coordinates(
)
flat_other = [other] if isinstance(other, float) else more_itertools.collapse(other)

if any(math.isnan(c) for c in flat_coords):
if any(math.isnan(c) for c in flat_coords): # pragma: no cover
assert not pygeoif.functions.compare_coordinates(coords=coords, other=coords)
else:
else: # pragma: no cover
assert pygeoif.functions.compare_coordinates(coords=coords, other=coords)
if any(math.isnan(c) for c in flat_other):
if any(math.isnan(c) for c in flat_other): # pragma: no cover
assert not pygeoif.functions.compare_coordinates(coords=other, other=other)
else:
else: # pragma: no cover
assert pygeoif.functions.compare_coordinates(coords=other, other=other)


Expand Down

0 comments on commit e705ad5

Please sign in to comment.