Skip to content

Commit 34fd487

Browse files
committed
WIP: Experimental
Experimental
1 parent 3bc4709 commit 34fd487

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

tests/test_live_client.py

Lines changed: 7 additions & 1 deletion
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
@@ -31,6 +32,9 @@
3132

3233
from tests.mockliveserver.fixture import MockLiveServerInterface
3334

35+
if platform.system() == "Windows":
36+
pytest.skip(reason="disable due to flakiness", allow_module_level=True)
37+
3438

3539
def test_live_connection_refused(
3640
test_api_key: str,
@@ -940,7 +944,9 @@ def callback(_: object) -> None:
940944
live_client.add_callback(callback)
941945

942946
# Assert
943-
assert len(live_client._session._user_callbacks) == 2 # include map_symbols callback
947+
assert (
948+
len(live_client._session._user_callbacks) == 2
949+
) # include map_symbols callback
944950
assert (callback, None) in live_client._session._user_callbacks
945951

946952

tests/test_live_client_reconnect.py

Lines changed: 5 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,10 @@
1819
from tests.mockliveserver.fixture import MockLiveServerInterface
1920

2021

22+
if platform.system() == "Windows":
23+
pytest.skip(reason="disable due to flakiness", allow_module_level=True)
24+
25+
2126
async def test_reconnect_policy_none(
2227
test_live_api_key: str,
2328
mock_live_server: MockLiveServerInterface,

tests/test_live_protocol.py

Lines changed: 5 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,10 @@
1011
from tests.mockliveserver.fixture import MockLiveServerInterface
1112

1213

14+
if platform.system() == "Windows":
15+
pytest.skip(reason="disable due to flakiness", allow_module_level=True)
16+
17+
1318
@pytest.mark.parametrize(
1419
"dataset",
1520
[

0 commit comments

Comments
 (0)