Skip to content

change test such that it passes in headless mode (instead of xpass) #48520

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Sep 13, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions pandas/tests/io/test_clipboard.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import os
from textwrap import dedent

import numpy as np
Expand Down Expand Up @@ -389,11 +390,12 @@ def test_invalid_encoding(self, df):
def test_round_trip_valid_encodings(self, enc, df):
self.check_round_trip_frame(df, encoding=enc)

@pytest.mark.single_cpu
@pytest.mark.parametrize("data", ["\U0001f44d...", "Ωœ∑´...", "abcd..."])
@pytest.mark.xfail(
reason="Flaky test in multi-process CI environment: GH 44584",
raises=AssertionError,
strict=False,
os.environ.get("DISPLAY") is None,
reason="Cannot be runed if a headless system is not put in place with Xvfb",
strict=True,
)
def test_raw_roundtrip(self, data):
# PR #25040 wide unicode wasn't copied correctly on PY3 on windows
Expand Down