Skip to content

Commit 216e9f5

Browse files
committed
Minor fixes
1 parent 4b63f75 commit 216e9f5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/matplotlib/tests/test_path.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,9 @@ def test_point_in_path_nan():
6565
box = np.array([[0, 0], [1, 0], [1, 1], [0, 1], [0, 0]])
6666
p = Path(box)
6767
test = np.array([[np.nan, 0.5]])
68-
assert p.contains_points(test)[0] == False
68+
contains = p.contains_points(test)
69+
assert len(contains) == 1
70+
assert not contains[0]
6971

7072

7173
if __name__ == '__main__':

0 commit comments

Comments
 (0)