Skip to content

Commit 997be94

Browse files
committed
Python 3.14 (Tests): SafeChildWatcher is deprecated in Python 3.14
1 parent 1f3a6b0 commit 997be94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

streamz/tests/test_sources.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def test_http():
103103
def test_process():
104104
cmd = ["python", "-c", "for i in range(4): print(i, end='')"]
105105
s = Source.from_process(cmd, with_end=True)
106-
if sys.platform != "win32":
106+
if sys.platform != "win32" and sys.version_info < (3, 14):
107107
# don't know why - something with pytest and new processes
108108
policy = asyncio.get_event_loop_policy()
109109
watcher = asyncio.SafeChildWatcher()
@@ -119,7 +119,7 @@ def test_process():
119119
def test_process_str():
120120
cmd = 'python -c "for i in range(4): print(i)"'
121121
s = Source.from_process(cmd)
122-
if sys.platform != "win32":
122+
if sys.platform != "win32" and sys.version_info < (3, 14):
123123
# don't know why - something with pytest and new processes
124124
policy = asyncio.get_event_loop_policy()
125125
watcher = asyncio.SafeChildWatcher()

0 commit comments

Comments
 (0)