From 51334ffd8c414f53c4b8f0250ef35da8dedc65f3 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 16 Dec 2024 23:33:11 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/astral-sh/ruff-pre-commit: v0.8.2 → v0.8.3](https://github.com/astral-sh/ruff-pre-commit/compare/v0.8.2...v0.8.3) --- .pre-commit-config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index e06d1c7ac..415a6d236 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,7 +22,7 @@ repos: hooks: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.8.2 + rev: v0.8.3 hooks: - id: ruff types: [file] From 1bd004a97ac05f63f60b8747f354fb05a630cc27 Mon Sep 17 00:00:00 2001 From: jakkdl Date: Wed, 18 Dec 2024 11:31:25 +0100 Subject: [PATCH 2/2] xfail macos 3.13.1 temporarily --- src/trio/_tests/test_highlevel_socket.py | 6 ++++++ src/trio/_tests/test_socket.py | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/src/trio/_tests/test_highlevel_socket.py b/src/trio/_tests/test_highlevel_socket.py index 7e9d35245..a03efb018 100644 --- a/src/trio/_tests/test_highlevel_socket.py +++ b/src/trio/_tests/test_highlevel_socket.py @@ -20,6 +20,12 @@ from collections.abc import Sequence +@pytest.mark.xfail( + sys.platform == "darwin" and sys.version_info[:3] == (3, 13, 1), + reason="TODO: This started failing in CI after 3.13.1", + raises=OSError, + strict=True, +) async def test_SocketStream_basics() -> None: # stdlib socket bad (even if connected) stdlib_a, stdlib_b = stdlib_socket.socketpair() diff --git a/src/trio/_tests/test_socket.py b/src/trio/_tests/test_socket.py index 8226d2e38..ebe94a6ca 100644 --- a/src/trio/_tests/test_socket.py +++ b/src/trio/_tests/test_socket.py @@ -458,6 +458,12 @@ async def test_SocketType_basics() -> None: sock.close() +@pytest.mark.xfail( + sys.platform == "darwin" and sys.version_info[:3] == (3, 13, 1), + reason="TODO: This started failing in CI after 3.13.1", + raises=OSError, + strict=True, +) async def test_SocketType_setsockopt() -> None: sock = tsocket.socket() with sock as _: