diff --git a/pandas/tests/io/test_clipboard.py b/pandas/tests/io/test_clipboard.py index d76b731ba43f9..c47a963e0fa3c 100644 --- a/pandas/tests/io/test_clipboard.py +++ b/pandas/tests/io/test_clipboard.py @@ -4,6 +4,7 @@ import numpy as np import pytest +from pandas.compat import is_platform_mac from pandas.errors import ( PyperclipException, PyperclipWindowsException, @@ -393,7 +394,7 @@ def test_round_trip_valid_encodings(self, enc, df): @pytest.mark.single_cpu @pytest.mark.parametrize("data", ["\U0001f44d...", "Ωœ∑´...", "abcd..."]) @pytest.mark.xfail( - os.environ.get("DISPLAY") is None, + os.environ.get("DISPLAY") is None and not is_platform_mac(), reason="Cannot be runed if a headless system is not put in place with Xvfb", strict=True, )