Skip to content

Commit 4d932e7

Browse files
committed
fix: NumPy boolean comparison to be flake8 compliant
1 parent 1b8269a commit 4d932e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/test_duckdb_sql.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def test_connection_returns_successfully_when_import_extension_fails(
9191
assert result is not None
9292
# check that spatial and excel extensions are not loaded as import extension failed
9393
result = result[result["extension_name"].isin(["spatial", "excel"])]
94-
assert result["loaded"].all() == False
94+
assert all(result["loaded"]) is False
9595

9696

9797
@mock.patch("duckdb.DuckDBPyConnection.load_extension")
@@ -106,7 +106,7 @@ def test_connection_returns_successfully_when_load_extension_fails(mock_load_ext
106106
assert result is not None
107107
# check that spatial and excel extensions are not loaded as import extension failed
108108
result = result[result["extension_name"].isin(["spatial", "excel"])]
109-
assert result["loaded"].all() == False
109+
assert all(result["loaded"]) is False
110110

111111

112112
def test_excel_extension_roundtrip(duckdb_connection, tmp_path):

0 commit comments

Comments
 (0)