Skip to content

Commit 78a5e42

Browse files
committed
🧪 Make flaky tests on PyPy 3.6 + Ubuntu as xfail
1 parent 0da426b commit 78a5e42

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

cheroot/test/test_conn.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import errno
44
from re import match as _matches_pattern
55
import socket
6+
import sys
67
import time
78
import logging
89
import traceback as traceback_
@@ -18,6 +19,7 @@
1819
import cheroot.server
1920

2021

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

2325

@@ -806,6 +808,12 @@ def _trigger_kb_intr(_req, _resp):
806808
)
807809

808810

811+
@pytest.mark.xfail(
812+
IS_CI and IS_PYPY and IS_PY36 and not IS_SLOW_ENV,
813+
reason='Fails under PyPy 3.6 under Ubuntu 20.04 in CI for unknown reason',
814+
# NOTE: Actually covers any Linux
815+
strict=False,
816+
)
809817
def test_unhandled_exception_in_request_handler(
810818
mocker,
811819
monkeypatch,
@@ -875,6 +883,12 @@ def _trigger_scary_exc(_req, _resp):
875883
)
876884

877885

886+
@pytest.mark.xfail(
887+
IS_CI and IS_PYPY and IS_PY36 and not IS_SLOW_ENV,
888+
reason='Fails under PyPy 3.6 under Ubuntu 20.04 in CI for unknown reason',
889+
# NOTE: Actually covers any Linux
890+
strict=False,
891+
)
878892
def test_remains_alive_post_unhandled_exception(
879893
mocker,
880894
monkeypatch,

0 commit comments

Comments
 (0)