Skip to content

Commit 4a329f3

Browse files
committed
Assert the true/false return of isna/notna on a scalar value
1 parent 7226c9d commit 4a329f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_pandas.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -256,8 +256,8 @@ def test_isna() -> None:
256256
assert check(assert_type(pd.isna(None), bool), bool)
257257
assert not check(assert_type(pd.notna(None), bool), bool)
258258

259-
check(assert_type(pd.isna(2.5), bool), bool)
260-
check(assert_type(pd.notna(2.5), bool), bool)
259+
assert not check(assert_type(pd.isna(2.5), bool), bool)
260+
assert check(assert_type(pd.notna(2.5), bool), bool)
261261

262262
# Check type guard functionality
263263
nullable1 = random.choice(["value", None, pd.NA, pd.NaT])

0 commit comments

Comments
 (0)