Skip to content

Commit

Permalink
test: skip test_http_server if AF_UNIX socket is not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunato committed Apr 18, 2023
1 parent 65c31a3 commit e6c7a7c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/units/test_http_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import importlib
import json
import os
import socket
import unittest
from tempfile import TemporaryDirectory

Expand All @@ -30,6 +31,10 @@
from tests.context import DEFAULT_ITEMS_PER_PAGE, SearchResult


# AF_UNIX socket not supported on windows yet, see https://github.com/python/cpython/issues/77589
@unittest.skipIf(
not hasattr(socket, "AF_UNIX"), "AF_UNIX socket not supported on this OS (windows)"
)
class RequestTestCase(unittest.TestCase):
@classmethod
def setUpClass(cls):
Expand Down

0 comments on commit e6c7a7c

Please sign in to comment.