mirror of
https://github.com/Dinnerbone/mcstatus.git
synced 2026-04-05 11:31:23 +08:00
Move test skip to the test mentioned in #140
This commit is contained in:
@@ -57,6 +57,10 @@ async def create_mock_packet_server(event_loop):
|
|||||||
|
|
||||||
|
|
||||||
class TestAsyncMinecraftServer:
|
class TestAsyncMinecraftServer:
|
||||||
|
@pytest.mark.skipif(
|
||||||
|
sys.platform.startswith("win"),
|
||||||
|
reason="async bug on Windows https://github.com/Dinnerbone/mcstatus/issues/140",
|
||||||
|
)
|
||||||
@pytest.mark.asyncio
|
@pytest.mark.asyncio
|
||||||
async def test_async_ping(self, unused_tcp_port, create_mock_packet_server):
|
async def test_async_ping(self, unused_tcp_port, create_mock_packet_server):
|
||||||
mock_packet_server = await create_mock_packet_server(
|
mock_packet_server = await create_mock_packet_server(
|
||||||
|
|||||||
@@ -17,10 +17,6 @@ async def fake_asyncio_asyncio_open_connection(hostname, port):
|
|||||||
return FakeAsyncStream(), None
|
return FakeAsyncStream(), None
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skipif(
|
|
||||||
sys.platform.startswith("win"),
|
|
||||||
reason="async bug on Windows https://github.com/Dinnerbone/mcstatus/issues/140",
|
|
||||||
)
|
|
||||||
class TestAsyncSocketConnection:
|
class TestAsyncSocketConnection:
|
||||||
def setup_method(self):
|
def setup_method(self):
|
||||||
self.tcp_async_socket = TCPAsyncSocketConnection()
|
self.tcp_async_socket = TCPAsyncSocketConnection()
|
||||||
|
|||||||
Reference in New Issue
Block a user