Skip to content

Commit

Permalink
🧪 Make flaky tests on PyPy 3.6 + Ubuntu as xfail
Browse files Browse the repository at this point in the history
  • Loading branch information
webknjaz committed Apr 17, 2024
1 parent 0da426b commit 23856be
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cheroot/test/test_conn.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import errno
from re import match as _matches_pattern
import socket
import sys
import time
import logging
import traceback as traceback_
Expand All @@ -18,6 +19,7 @@
import cheroot.server


IS_PY36 = sys.version_info[:2] == (3, 6)
IS_SLOW_ENV = IS_MACOS or IS_WINDOWS


Expand Down Expand Up @@ -806,6 +808,11 @@ def _trigger_kb_intr(_req, _resp):
)


@pytest.mark.xfail(
IS_CI and IS_PYPY and IS_PY36 and not IS_SLOW_ENV, # NOTE: Actually covers any Linux
reason='Fails under PyPy 3.6 under Ubuntu 20.04 in CI for unknown reason',
strict=False,
)
def test_unhandled_exception_in_request_handler(
mocker,
monkeypatch,
Expand Down Expand Up @@ -875,6 +882,11 @@ def _trigger_scary_exc(_req, _resp):
)


@pytest.mark.xfail(
IS_CI and IS_PYPY and IS_PY36 and not IS_SLOW_ENV, # NOTE: Actually covers any Linux
reason='Fails under PyPy 3.6 under Ubuntu 20.04 in CI for unknown reason',
strict=False,
)
def test_remains_alive_post_unhandled_exception(
mocker,
monkeypatch,
Expand Down

0 comments on commit 23856be

Please sign in to comment.