Skip to content

Commit e58e310

Browse files
committed
🐛 fix test for find function to use == instead of is
1 parent 352d1b6 commit e58e310

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

tests/test_find_util.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,11 @@ def is_even(x):
4444
],
4545
)
4646
def test_find_basic_parametrized(seq, predicate, expected):
47-
assert find(predicate, seq) is expected
47+
result = find(predicate, seq)
48+
if expected is None:
49+
assert result is None
50+
else:
51+
assert result == expected
4852

4953

5054
def test_find_with_truthy_non_boolean_predicate():

0 commit comments

Comments
 (0)