Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart committed Nov 15, 2024
1 parent 1834b58 commit 657ca59
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ filterwarnings= [

# ignore unclosed sqlite in traits
"ignore:unclosed database in <sqlite3.Connection:ResourceWarning",

# ignore timeout cancel coroutine not awaited in zmq-anyio
"ignore: coroutine 'Poller._apoll.<locals>.trigger_timeout' was never awaited",
]

[tool.coverage.report]
Expand Down
8 changes: 2 additions & 6 deletions tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ async def test_io_isatty(iopub_thread):
assert stream.isatty()


@pytest.mark.skip(reason="FIXME")
async def test_io_thread(anyio_backend, iopub_thread):
thread = iopub_thread
thread._setup_pipe_in()
Expand All @@ -80,8 +79,6 @@ async def test_io_thread(anyio_backend, iopub_thread):
thread._really_send([b"hi"])
ctx1.destroy()
thread.stop()
thread.close()
thread._really_send(None)


async def test_background_socket(anyio_backend, iopub_thread):
Expand Down Expand Up @@ -197,8 +194,7 @@ async def subprocess_test_echo_watch():


@pytest.mark.anyio()
# @pytest.mark.skipif(sys.platform.startswith("win"), reason="Windows")
@pytest.mark.skip(reason="FIXME")
@pytest.mark.skipif(sys.platform.startswith("win"), reason="Windows")
async def test_echo_watch(ctx):
"""Test echo on underlying FD while capturing the same FD
Expand All @@ -218,7 +214,7 @@ async def test_echo_watch(ctx):
[
sys.executable,
"-c",
f"import {__name__}; {__name__}.subprocess_test_echo_watch()",
f"import {__name__}, anyio; anyio.run({__name__}.subprocess_test_echo_watch)",
],
env=env,
capture_output=True,
Expand Down

0 comments on commit 657ca59

Please sign in to comment.