diff --git a/pandas/tests/io/excel/test_openpyxl.py b/pandas/tests/io/excel/test_openpyxl.py index 90e795bd5c52f..e8c60870e2a85 100644 --- a/pandas/tests/io/excel/test_openpyxl.py +++ b/pandas/tests/io/excel/test_openpyxl.py @@ -1,11 +1,8 @@ -from distutils.version import LooseVersion import os import numpy as np import pytest -from pandas.compat import PY37, is_platform_mac - import pandas as pd from pandas import DataFrame import pandas.util.testing as tm @@ -16,8 +13,6 @@ pytestmark = pytest.mark.parametrize("ext", [".xlsx"]) -openpyxl_gt301 = LooseVersion(openpyxl.__version__) > LooseVersion("3.0.1") - def test_to_excel_styleconverter(ext): from openpyxl import styles @@ -86,9 +81,6 @@ def test_write_cells_merge_styled(ext): assert xcell_a2.font == openpyxl_sty_merged -@pytest.mark.xfail( - openpyxl_gt301 and PY37 and is_platform_mac(), reason="broken change in openpyxl" -) @pytest.mark.parametrize( "mode,expected", [("w", ["baz"]), ("a", ["foo", "bar", "baz"])] ) @@ -115,9 +107,6 @@ def test_write_append_mode(ext, mode, expected): assert wb2.worksheets[index]["A1"].value == cell_value -@pytest.mark.xfail( - openpyxl_gt301 and PY37 and is_platform_mac(), reason="broken change in openpyxl" -) def test_to_excel_with_openpyxl_engine(ext, tmpdir): # GH 29854 # TODO: Fix this once newer version of openpyxl fixes the bug