home-assistant: fix syrupy 5.5 compat

This commit is contained in:
Martin Weinelt
2026-07-15 03:11:43 +02:00
parent 94e8ddc11b
commit 3adee824b2
2 changed files with 25 additions and 0 deletions
+3
View File
@@ -332,6 +332,9 @@ python3Packages.buildPythonApplication rec {
# https://github.com/home-assistant/core/pull/172893
./patches/pyjwt-2.13-compat.patch
# remove is_xdist_controller usage
./patches/syrupy-5.5-compat.patch
];
postPatch = ''
@@ -0,0 +1,22 @@
diff --git a/tests/syrupy.py b/tests/syrupy.py
index a8779963109..0b4c009d59c 100644
--- a/tests/syrupy.py
+++ b/tests/syrupy.py
@@ -18,7 +18,7 @@ from syrupy.location import PyTestLocation
from syrupy.report import SnapshotReport
from syrupy.session import ItemStatus, SnapshotSession
from syrupy.types import PropertyFilter, PropertyMatcher, PropertyPath, SerializableData
-from syrupy.utils import is_xdist_controller, is_xdist_worker
+from syrupy.utils import is_xdist_worker
import voluptuous as vol
import voluptuous_serialize
@@ -406,8 +406,6 @@ def override_syrupy_finish(self: SnapshotSession) -> int:
indent=2,
)
return exitstatus
- if is_xdist_controller():
- return exitstatus
if needs_xdist_merge:
worker_count = None