Skip to content

Commit

Permalink
Tweak tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinche committed Aug 9, 2023
1 parent c33ed0c commit 658e61a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/test_os.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ async def test_replace():
reason="sendfile() syscall doesn't allow file->file",
)
@pytest.mark.skipif(
platform.system() in ("Darwin", "Windows"), reason="sendfile() doesn't work on mac"
platform.system() in ("Darwin", "Windows"),
reason="sendfile() doesn't work on mac and Win",
)
@pytest.mark.asyncio
async def test_sendfile_file(tmpdir):
Expand Down Expand Up @@ -149,6 +150,9 @@ async def test_sendfile_file(tmpdir):
assert size == actual_size


@pytest.mark.skipif(
platform.system() in ("Windows"), reason="sendfile() doesn't work on Win"
)
@pytest.mark.asyncio
async def test_sendfile_socket(unused_tcp_port):
"""Test the sendfile functionality, file-to-socket."""
Expand Down

0 comments on commit 658e61a

Please sign in to comment.