home-assistant: fix syrupy 5.5 compat
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user