[Add] skip some tests under osx
This commit is contained in:
parent
2f618d5796
commit
dd99609109
5
setup.py
5
setup.py
@ -92,13 +92,16 @@ vnoes = Extension(
|
|||||||
libraries=["oes_api"],
|
libraries=["oes_api"],
|
||||||
extra_compile_args=compiler_flags,
|
extra_compile_args=compiler_flags,
|
||||||
extra_link_args=extra_link_args,
|
extra_link_args=extra_link_args,
|
||||||
|
runtime_library_dirs=["$ORIGIN"],
|
||||||
depends=[],
|
depends=[],
|
||||||
language="cpp",
|
language="cpp",
|
||||||
)
|
)
|
||||||
|
|
||||||
if platform.uname().system == "Windows":
|
if platform.system() == "Windows":
|
||||||
# use pre-built pyd for windows ( support python 3.7 only )
|
# use pre-built pyd for windows ( support python 3.7 only )
|
||||||
ext_modules = []
|
ext_modules = []
|
||||||
|
elif platform.system() == "Darwin":
|
||||||
|
ext_modules = []
|
||||||
else:
|
else:
|
||||||
ext_modules = [vnctptd, vnctpmd, vnoes]
|
ext_modules = [vnctptd, vnctpmd, vnoes]
|
||||||
|
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
# flake8: noqa
|
# flake8: noqa
|
||||||
import unittest
|
import unittest
|
||||||
|
import platform
|
||||||
|
|
||||||
|
|
||||||
# noinspection PyUnresolvedReferences
|
# noinspection PyUnresolvedReferences
|
||||||
@ -24,12 +25,14 @@ class ImportTest(unittest.TestCase):
|
|||||||
def test_import_ib_gateway(self):
|
def test_import_ib_gateway(self):
|
||||||
from vnpy.gateway.ib import IbGateway
|
from vnpy.gateway.ib import IbGateway
|
||||||
|
|
||||||
|
@unittest.skipIf(platform.system() == "Darwin", "Not supported yet under osx")
|
||||||
def test_import_ctp_gateway(self):
|
def test_import_ctp_gateway(self):
|
||||||
from vnpy.gateway.ctp import CtpGateway
|
from vnpy.gateway.ctp import CtpGateway
|
||||||
|
|
||||||
def test_import_tiger_gateway(self):
|
def test_import_tiger_gateway(self):
|
||||||
from vnpy.gateway.tiger import TigerGateway
|
from vnpy.gateway.tiger import TigerGateway
|
||||||
|
|
||||||
|
@unittest.skipIf(platform.system() == "Darwin", "Not supported yet under osx")
|
||||||
def test_import_oes_gateway(self):
|
def test_import_oes_gateway(self):
|
||||||
from vnpy.gateway.oes import OesGateway
|
from vnpy.gateway.oes import OesGateway
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user