Skip to content

Commit 657ca59

Browse files
committed
Fix tests
1 parent 1834b58 commit 657ca59

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,6 +192,9 @@ filterwarnings= [
192192

193193
# ignore unclosed sqlite in traits
194194
"ignore:unclosed database in <sqlite3.Connection:ResourceWarning",
195+
196+
# ignore timeout cancel coroutine not awaited in zmq-anyio
197+
"ignore: coroutine 'Poller._apoll.<locals>.trigger_timeout' was never awaited",
195198
]
196199

197200
[tool.coverage.report]

tests/test_io.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ async def test_io_isatty(iopub_thread):
6767
assert stream.isatty()
6868

6969

70-
@pytest.mark.skip(reason="FIXME")
7170
async def test_io_thread(anyio_backend, iopub_thread):
7271
thread = iopub_thread
7372
thread._setup_pipe_in()
@@ -80,8 +79,6 @@ async def test_io_thread(anyio_backend, iopub_thread):
8079
thread._really_send([b"hi"])
8180
ctx1.destroy()
8281
thread.stop()
83-
thread.close()
84-
thread._really_send(None)
8582

8683

8784
async def test_background_socket(anyio_backend, iopub_thread):
@@ -197,8 +194,7 @@ async def subprocess_test_echo_watch():
197194

198195

199196
@pytest.mark.anyio()
200-
# @pytest.mark.skipif(sys.platform.startswith("win"), reason="Windows")
201-
@pytest.mark.skip(reason="FIXME")
197+
@pytest.mark.skipif(sys.platform.startswith("win"), reason="Windows")
202198
async def test_echo_watch(ctx):
203199
"""Test echo on underlying FD while capturing the same FD
204200
@@ -218,7 +214,7 @@ async def test_echo_watch(ctx):
218214
[
219215
sys.executable,
220216
"-c",
221-
f"import {__name__}; {__name__}.subprocess_test_echo_watch()",
217+
f"import {__name__}, anyio; anyio.run({__name__}.subprocess_test_echo_watch)",
222218
],
223219
env=env,
224220
capture_output=True,

0 commit comments

Comments
 (0)