Skip to content

Commit

Permalink
Skip more tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aisk committed Apr 6, 2024
1 parent 2a7ec6a commit f99b8f8
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/test_all_protocols_binary_field.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from __future__ import absolute_import

import sys
import time
import traceback
from multiprocessing import Process
Expand All @@ -24,6 +25,11 @@
make_client as make_rpc_client
from thriftpy2.transport import TBufferedTransportFactory, TCyMemoryBuffer


if sys.platform == "win32":
pytest.skip("requires fork", allow_module_level=True)


protocols = [TApacheJSONProtocolFactory,
TJSONProtocolFactory,
TBinaryProtocolFactory,
Expand Down
5 changes: 5 additions & 0 deletions tests/test_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
import os
import multiprocessing
import socket
import sys
import time
import uuid

Expand All @@ -21,6 +22,10 @@
"addressbook.thrift"))


if sys.platform == "win32":
pytest.skip("requires fork", allow_module_level=True)


class Dispatcher():
def __init__(self):
self.ab = addressbook.AddressBook()
Expand Down
6 changes: 6 additions & 0 deletions tests/test_tracking.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import pickle
import random
import socket
import sys
import tempfile
import time

Expand Down Expand Up @@ -57,6 +58,11 @@
else:
cleanup_on_sigterm()


if sys.platform == "win32":
pytest.skip("requires fork", allow_module_level=True)


addressbook = thriftpy2.load(os.path.join(os.path.dirname(__file__),
"addressbook.thrift"))
_, db_file = tempfile.mkstemp()
Expand Down

0 comments on commit f99b8f8

Please sign in to comment.