Skip to content

Commit

Permalink
test(pyspark): skip tests on PySpark <3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
cpcloud committed Feb 4, 2025
1 parent 77c34ba commit 97e68e9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions ibis/backends/pyspark/tests/test_ddl.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,11 @@ def test_create_table_reserved_identifier(con, alltypes, keyword_t):
assert result == expected


@pytest.mark.xfail_version(

Check warning on line 183 in ibis/backends/pyspark/tests/test_ddl.py

View check run for this annotation

Codecov / codecov/patch

ibis/backends/pyspark/tests/test_ddl.py#L183

Added line #L183 was not covered by tests
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"))

Check warning on line 189 in ibis/backends/pyspark/tests/test_ddl.py

View check run for this annotation

Codecov / codecov/patch

ibis/backends/pyspark/tests/test_ddl.py#L188-L189

Added lines #L188 - L189 were not covered by tests

Expand All @@ -191,6 +196,11 @@ def test_create_database_exists(con):
con.drop_database(dbname, force=True)

Check warning on line 196 in ibis/backends/pyspark/tests/test_ddl.py

View check run for this annotation

Codecov / codecov/patch

ibis/backends/pyspark/tests/test_ddl.py#L196

Added line #L196 was not covered by tests


@pytest.mark.xfail_version(

Check warning on line 199 in ibis/backends/pyspark/tests/test_ddl.py

View check run for this annotation

Codecov / codecov/patch

ibis/backends/pyspark/tests/test_ddl.py#L199

Added line #L199 was not covered by tests
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"))

Check warning on line 205 in ibis/backends/pyspark/tests/test_ddl.py

View check run for this annotation

Codecov / codecov/patch

ibis/backends/pyspark/tests/test_ddl.py#L204-L205

Added lines #L204 - L205 were not covered by tests

Expand Down

0 comments on commit 97e68e9

Please sign in to comment.