From 97e68e9382862ab1db568d4900c8ce6a7b996c8a Mon Sep 17 00:00:00 2001 From: Phillip Cloud <417981+cpcloud@users.noreply.github.com> Date: Tue, 4 Feb 2025 06:36:01 -0500 Subject: [PATCH] test(pyspark): skip tests on PySpark <3.5 --- ibis/backends/pyspark/tests/test_ddl.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ibis/backends/pyspark/tests/test_ddl.py b/ibis/backends/pyspark/tests/test_ddl.py index 7177521ef5c8..5683e79f6635 100644 --- a/ibis/backends/pyspark/tests/test_ddl.py +++ b/ibis/backends/pyspark/tests/test_ddl.py @@ -180,6 +180,11 @@ def test_create_table_reserved_identifier(con, alltypes, keyword_t): assert result == expected +@pytest.mark.xfail_version( + pyspark=["pyspark<3.5"], + raises=ValueError, + reason="PySparkAnalysisException is not available in PySpark <3.5", +) def test_create_database_exists(con): con.create_database(dbname := util.gen_name("dbname")) @@ -191,6 +196,11 @@ def test_create_database_exists(con): con.drop_database(dbname, force=True) +@pytest.mark.xfail_version( + pyspark=["pyspark<3.5"], + raises=ValueError, + reason="PySparkAnalysisException is not available in PySpark <3.5", +) def test_drop_database_exists(con): con.create_database(dbname := util.gen_name("dbname"))