Skip to content

Commit

Permalink
Skip polars test in 3.7 due to missing PanicException
Browse files Browse the repository at this point in the history
  • Loading branch information
carlopi committed Sep 23, 2024
1 parent 0fe7708 commit de84cdb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/pythonpkg/tests/fast/arrow/test_polars.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import duckdb
import pytest
import sys

pl = pytest.importorskip("polars")
arrow = pytest.importorskip("pyarrow")
Expand Down Expand Up @@ -66,6 +67,7 @@ def test_polars_from_json(self, duckdb_cursor):
res = duckdb_cursor.read_json(string).pl()
assert str(res['entry'][0][0]) == "{'content': {'ManagedSystem': {'test': None}}}"

@pytest.mark.skipif(sys.version_info < (3, 8), reason="Polars PanicException is not supported in earlier versions")
def test_polars_from_json_error(self, duckdb_cursor):
from io import StringIO

Expand Down

0 comments on commit de84cdb

Please sign in to comment.