Move test skip to the test mentioned in #140

This commit is contained in:
Kevin Tindall
2022-01-02 22:19:40 -06:00
parent 86bd6b6d9e
commit 620dedd4f9
2 changed files with 4 additions and 4 deletions

View File

@@ -57,6 +57,10 @@ async def create_mock_packet_server(event_loop):
class TestAsyncMinecraftServer:
@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="async bug on Windows https://github.com/Dinnerbone/mcstatus/issues/140",
)
@pytest.mark.asyncio
async def test_async_ping(self, unused_tcp_port, create_mock_packet_server):
mock_packet_server = await create_mock_packet_server(

View File

@@ -17,10 +17,6 @@ async def fake_asyncio_asyncio_open_connection(hostname, port):
return FakeAsyncStream(), None
@pytest.mark.skipif(
sys.platform.startswith("win"),
reason="async bug on Windows https://github.com/Dinnerbone/mcstatus/issues/140",
)
class TestAsyncSocketConnection:
def setup_method(self):
self.tcp_async_socket = TCPAsyncSocketConnection()