Skip to content

Commit 1a1a5b4

Browse files
committed
Fix Ruff errors
1 parent 57d6380 commit 1a1a5b4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python/tests/test_context.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,8 @@ def test_sql_auto_register_pandas_dataframe(monkeypatch):
385385
pytest.skip("pandas does not expose Arrow capsule export")
386386

387387
def fail_from_pandas(*args, **kwargs):
388-
raise AssertionError("from_pandas should not be called during auto-registration")
388+
msg = "from_pandas should not be called during auto-registration"
389+
raise AssertionError(msg)
389390

390391
monkeypatch.setattr(SessionContext, "from_pandas", fail_from_pandas)
391392

0 commit comments

Comments
 (0)