Skip to content

Commit a813d7e

Browse files
committed
MOD: Skip Live client tests on Windows
1 parent 3bc4709 commit a813d7e

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

tests/test_live_client.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from __future__ import annotations
66

77
import pathlib
8+
import platform
89
import random
910
import string
1011
from io import BytesIO
@@ -32,6 +33,11 @@
3233
from tests.mockliveserver.fixture import MockLiveServerInterface
3334

3435

36+
# TODO(nm): Remove when stable
37+
if platform.system() == "Windows":
38+
pytest.skip(reason="Skip on Windows due to flakiness", allow_module_level=True)
39+
40+
3541
def test_live_connection_refused(
3642
test_api_key: str,
3743
) -> None:

tests/test_live_client_reconnect.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
from __future__ import annotations
22

33
import asyncio
4+
import platform
45
from unittest.mock import MagicMock
56

67
import pandas as pd
@@ -18,6 +19,11 @@
1819
from tests.mockliveserver.fixture import MockLiveServerInterface
1920

2021

22+
# TODO(nm): Remove when stable
23+
if platform.system() == "Windows":
24+
pytest.skip(reason="Skip on Windows due to flakiness", allow_module_level=True)
25+
26+
2127
async def test_reconnect_policy_none(
2228
test_live_api_key: str,
2329
mock_live_server: MockLiveServerInterface,

tests/test_live_protocol.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import asyncio
2+
import platform
23
from unittest.mock import MagicMock
34

45
import pytest
@@ -10,6 +11,11 @@
1011
from tests.mockliveserver.fixture import MockLiveServerInterface
1112

1213

14+
# TODO(nm): Remove when stable
15+
if platform.system() == "Windows":
16+
pytest.skip(reason="Skip on Windows due to flakiness", allow_module_level=True)
17+
18+
1319
@pytest.mark.parametrize(
1420
"dataset",
1521
[

0 commit comments

Comments
 (0)