From 620dedd4f92e1bc97efb48b8978273d7d09f9e2a Mon Sep 17 00:00:00 2001 From: Kevin Tindall Date: Sun, 2 Jan 2022 22:19:40 -0600 Subject: [PATCH] Move test skip to the test mentioned in #140 --- mcstatus/tests/test_server.py | 4 ++++ mcstatus/tests/test_timeout.py | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mcstatus/tests/test_server.py b/mcstatus/tests/test_server.py index 5080052..72b9fe7 100644 --- a/mcstatus/tests/test_server.py +++ b/mcstatus/tests/test_server.py @@ -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( diff --git a/mcstatus/tests/test_timeout.py b/mcstatus/tests/test_timeout.py index 69e6835..d4e2825 100644 --- a/mcstatus/tests/test_timeout.py +++ b/mcstatus/tests/test_timeout.py @@ -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()