Skip to content

Commit 2183270

Browse files
committed
fix(tests): remove unused variable warning in test_sql_auto_register_pandas_dataframe
1 parent 32ade30 commit 2183270

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/tests/test_context.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,15 +376,15 @@ def test_sql_auto_register_pandas_dataframe(monkeypatch):
376376
pd = pytest.importorskip("pandas")
377377

378378
ctx = SessionContext(auto_register_python_objects=True)
379-
pandas_df = pd.DataFrame({"value": [1, 2, 3, 4]}) # noqa: F841
379+
pandas_df = pd.DataFrame({"value": [1, 2, 3, 4]})
380380

381381
if not (
382382
hasattr(pandas_df, "__arrow_c_stream__")
383383
or hasattr(pandas_df, "__arrow_c_array__")
384384
):
385385
pytest.skip("pandas does not expose Arrow capsule export")
386386

387-
def fail_from_pandas(*args, **kwargs): # noqa: ANN002, ANN003
387+
def fail_from_pandas(*args, **kwargs):
388388
raise AssertionError("from_pandas should not be called during auto-registration")
389389

390390
monkeypatch.setattr(SessionContext, "from_pandas", fail_from_pandas)

0 commit comments

Comments
 (0)