Skip to content

Commit c3b2b56

Browse files
committed
Ignore test_intersection if point
1 parent 7cb36bf commit c3b2b56

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spatialpandas/tests/geometry/algorithms/test_intersection.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@ def test_segment_intersection(ax0, ay0, ax1, ay1, bx0, by0, bx1, by1):
6262
assert result1 == result2
6363

6464
# Use shapely polygon to compute expected intersection
65-
if (ax0 == ax1 == bx0 == bx1) or (ay0 == ay1 == by0 == by1):
65+
if (
66+
(ax0 == ax1 == bx0 == bx1) or (ay0 == ay1 == by0 == by1)
67+
or (ax0 == ax1 == ay0 == ay1) or (bx0 == bx1 == by0 == by1)
68+
):
6669
return
6770
line1 = sg.LineString([(ax0, ay0), (ax1, ay1)])
6871
line2 = sg.LineString([(bx0, by0), (bx1, by1)])

0 commit comments

Comments
 (0)