diff --git a/pandas/tests/io/test_excel.py b/pandas/tests/io/test_excel.py index 2e4c6c0618582..12d5c29cd75e2 100644 --- a/pandas/tests/io/test_excel.py +++ b/pandas/tests/io/test_excel.py @@ -2393,6 +2393,10 @@ def custom_converter(css): pytest.importorskip('jinja2') pytest.importorskip(engine) + if engine == 'openpyxl' and openpyxl_compat.is_compat(major_ver=1): + pytest.xfail('openpyxl1 does not support some openpyxl2-compatible ' + 'style dicts') + # Prepare spreadsheets df = DataFrame(np.random.randn(10, 3))