Skip to content

Commit

Permalink
remove skip on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
cocolato committed Jul 15, 2024
1 parent 07037f8 commit d675431
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions tests/test_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ def get_headers(self):

@pytest.fixture(scope="module")
def server(request):
import thriftpy2
addressbook = thriftpy2.load(os.path.join(os.path.dirname(__file__),
"addressbook.thrift"))
server = make_server(addressbook.AddressBookService, Dispatcher(),
host="127.0.0.1", port=6080)
ps = multiprocess.Process(target=server.serve)
Expand Down
3 changes: 2 additions & 1 deletion tests/test_multiplexed.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# -*- coding: utf-8 -*-

from __future__ import absolute_import
import sys

import multiprocess
import os
Expand Down Expand Up @@ -77,7 +78,7 @@ def client_two(timeout=3000):
socket_timeout=timeout, connect_timeout=timeout,
proto_factory=multiplexing_factory)


@pytest.mark.skipif(sys.platform == "win32", "requires socket.UNIX")
def test_multiplexed_server(server):
with client_one() as c:
assert c.doThingOne() is True
Expand Down

0 comments on commit d675431

Please sign in to comment.