Skip to content

Commit cd7ec3a

Browse files
committed
🧪 Skip UNIX socket tests under Python 3.8
1 parent 1395a6a commit cd7ec3a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cheroot/test/test_server.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import os
44
import queue
55
import socket
6+
import sys
67
import tempfile
78
import threading
89
import types
@@ -27,6 +28,7 @@
2728

2829

2930
IS_SLOW_ENV = IS_MACOS or IS_WINDOWS
31+
PY38_OR_LOWER = sys.version_info[:2] <= (3, 8)
3032

3133

3234
unix_only_sock_test = pytest.mark.skipif(
@@ -44,6 +46,11 @@
4446
@pytest.fixture(params=('abstract', 'file'))
4547
def unix_sock_file(request):
4648
"""Check that bound UNIX socket address is stored in server."""
49+
if PY38_OR_LOWER:
50+
# FIXME: This can be dropped together with Python 3.8.
51+
# FIXME: It's coming from `trustme < 1.2.0` as newer versions
52+
# FIXME: fixed the compatibility but dropped Python 3.8 support.
53+
pytest.skip('`requests-unixsocket` is defunct under Python 3.8')
4754
name = 'unix_{request.param}_sock'.format(**locals())
4855
return request.getfixturevalue(name)
4956

0 commit comments

Comments
 (0)