Skip to content

Remove obsolete retrying patch from tests#274

Merged
TheJulianJES merged 1 commit into
zigpy:devfrom
TheJulianJES:tjj/fix-test-joining-init-retries
May 31, 2026
Merged

Remove obsolete retrying patch from tests#274
TheJulianJES merged 1 commit into
zigpy:devfrom
TheJulianJES:tjj/fix-test-joining-init-retries

Conversation

@TheJulianJES
Copy link
Copy Markdown
Contributor

Device._initialize is no longer wrapped with a retry decorator in zigpy 1.5.0, so Device._initialize.__wrapped__ raises AttributeError at collection time. The @mock.patch(..., new=...__wrapped__) only existed to strip those retries, which no longer exist, so drop it from the three join/announce tests (and the now-unused zigpy.device import).

Requires #273 for tests to pass.

`Device._initialize` is no longer wrapped with a retry decorator in
zigpy 1.5.0, so `Device._initialize.__wrapped__` raises AttributeError
at collection time. The `@mock.patch(..., new=...__wrapped__)` only
existed to strip those retries, which no longer exist, so drop it from
the three join/announce tests (and the now-unused zigpy.device import).
@TheJulianJES TheJulianJES merged commit 09d5466 into zigpy:dev May 31, 2026
6 of 10 checks passed
@TheJulianJES TheJulianJES mentioned this pull request May 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant