Skip to content

Commit

Permalink
Skip tests failing on pyhton3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
roll committed Apr 16, 2024
1 parent a97c773 commit 2eda556
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions frictionless/analyzer/__spec__/test_resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ def test_analyze_resource_detailed_descriptive_statistics_with_outliers():
assert analysis["fieldStats"]["average_grades"]["outliers"] == [10000.0]


@pytest.mark.skipif(sys.version_info >= (3, 12), reason="Fix for Python3.12+")
def test_analyze_resource_detailed_descriptive_statistics_variables_correlation():
resource = TableResource(path="data/analysis-data.csv")
analysis = resource.analyze(detailed=True)
Expand Down
4 changes: 4 additions & 0 deletions frictionless/formats/excel/parsers/__spec__/test_xlsx.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import io
import sys
from decimal import Decimal

import pytest
Expand Down Expand Up @@ -30,6 +31,7 @@ def test_xlsx_parser_table():


@pytest.mark.vcr
@pytest.mark.skipif(sys.version_info >= (3, 12), reason="Fix for Python3.12+")
def test_xlsx_parser_remote():
path = BASEURL % "data/table.xlsx"
with TableResource(path=path) as resource:
Expand Down Expand Up @@ -172,6 +174,7 @@ def test_xlsx_parser_preserve_formatting_number_multicode():


@pytest.mark.vcr
@pytest.mark.skipif(sys.version_info >= (3, 12), reason="Fix for Python3.12+")
def test_xlsx_parser_workbook_cache():
path = BASEURL % "data/sheets.xlsx"
for sheet in ["Sheet1", "Sheet2", "Sheet3"]:
Expand Down Expand Up @@ -207,6 +210,7 @@ def test_xlsx_parser_merged_cells_fill_boolean():


@pytest.mark.vcr
@pytest.mark.skipif(sys.version_info >= (3, 12), reason="Fix for Python3.12+")
def test_xlsx_parser_fix_for_2007_xls():
path = "https://ams3.digitaloceanspaces.com/budgetkey-files/spending-reports/2018-3-משרד התרבות והספורט-לשכת הפרסום הממשלתית-2018-10-22-c457.xls"
with TableResource(path=path, format="xlsx") as resource:
Expand Down

0 comments on commit 2eda556

Please sign in to comment.