mirror of
https://github.com/home-assistant/core.git
synced 2025-11-12 04:20:17 +00:00
Update ruff to 0.12.0 (#147106)
This commit is contained in:
@@ -36,7 +36,7 @@ def test_validate_python(mock_exit) -> None:
|
||||
with patch(
|
||||
"sys.version_info",
|
||||
new_callable=PropertyMock(
|
||||
return_value=(REQUIRED_PYTHON_VER[0] - 1,) + REQUIRED_PYTHON_VER[1:]
|
||||
return_value=(REQUIRED_PYTHON_VER[0] - 1, *REQUIRED_PYTHON_VER[1:])
|
||||
),
|
||||
):
|
||||
main.validate_python()
|
||||
@@ -55,7 +55,7 @@ def test_validate_python(mock_exit) -> None:
|
||||
with patch(
|
||||
"sys.version_info",
|
||||
new_callable=PropertyMock(
|
||||
return_value=(REQUIRED_PYTHON_VER[:2]) + (REQUIRED_PYTHON_VER[2] + 1,)
|
||||
return_value=(*REQUIRED_PYTHON_VER[:2], REQUIRED_PYTHON_VER[2] + 1)
|
||||
),
|
||||
):
|
||||
main.validate_python()
|
||||
|
||||
Reference in New Issue
Block a user