Skip to content

Commit

Permalink
add xfail when CI+MacOS for test_stdin_read_warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Ousret committed Mar 22, 2024
1 parent dfe3dbe commit cce24fe
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_uploads.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import json
import platform
import sys
import subprocess
import time
Expand Down Expand Up @@ -144,6 +145,11 @@ def test_reading_from_stdin(httpbin, wait):

@pytest.mark.requires_external_processes
@pytest.mark.skipif(is_windows, reason="Windows doesn't support select() calls into files")
@pytest.mark.xfail(
platform.system() == "Darwin" and os.environ.get("CI") is not None,
reason="GitHub CI and MacOS raises random failures",
strict=False,
)
def test_stdin_read_warning(httpbin):
"""This test is flaky. Expect random failure in the CI under MacOS.
It's mainly due to the poor VM performance."""
Expand Down

0 comments on commit cce24fe

Please sign in to comment.