From e9fdf016b23fe63995ca15dcad50d618def88bd3 Mon Sep 17 00:00:00 2001 From: Antoine Beyeler Date: Wed, 4 Feb 2026 14:42:06 +0100 Subject: [PATCH 1/2] Use instead of for --- src/errors.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/errors.rs b/src/errors.rs index fc079eb6c..d1b518042 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -39,7 +39,7 @@ pub enum PyDataFusionError { impl fmt::Display for PyDataFusionError { fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { match self { - PyDataFusionError::ExecutionError(e) => write!(f, "DataFusion error: {e:?}"), + PyDataFusionError::ExecutionError(e) => write!(f, "DataFusion error: {e}"), PyDataFusionError::ArrowError(e) => write!(f, "Arrow error: {e:?}"), PyDataFusionError::PythonError(e) => write!(f, "Python error {e:?}"), PyDataFusionError::Common(e) => write!(f, "{e}"), From 97f5f46ce77afb8d1df24805dfc19318ce7886c3 Mon Sep 17 00:00:00 2001 From: Antoine Beyeler Date: Wed, 4 Feb 2026 15:56:45 +0100 Subject: [PATCH 2/2] update test --- python/tests/test_indexing.py | 2 +- python/tests/test_udf.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/tests/test_indexing.py b/python/tests/test_indexing.py index 327decd2f..e4c60b55d 100644 --- a/python/tests/test_indexing.py +++ b/python/tests/test_indexing.py @@ -43,7 +43,7 @@ def test_err(df): with pytest.raises(Exception) as e_info: df["c"] - for e in ["SchemaError", "FieldNotFound", 'name: "c"']: + for e in ["Schema error", "No field named c"]: assert e in e_info.value.args[0] with pytest.raises(Exception) as e_info: diff --git a/python/tests/test_udf.py b/python/tests/test_udf.py index c90668efe..c0ba1d831 100644 --- a/python/tests/test_udf.py +++ b/python/tests/test_udf.py @@ -207,4 +207,4 @@ def non_nullable_abs(input_col): with pytest.raises(Exception) as e_info: _results = df_result.collect() - assert "InvalidArgumentError" in str(e_info) + assert "Invalid argument error" in str(e_info)