Skip to content

tests: fix mistakenly failing tests due to mock-blinker incompatibility - #271

Open
rsekman wants to merge 1 commit into
rndusr:masterfrom
rsekman:tests/blinker-stub
Open

tests: fix mistakenly failing tests due to mock-blinker incompatibility#271
rsekman wants to merge 1 commit into
rndusr:masterfrom
rsekman:tests/blinker-stub

Conversation

@rsekman

@rsekman rsekman commented Aug 30, 2026

Copy link
Copy Markdown
Contributor

blinker tries to inspect the value being sent for being a coroutine. this raises on lambdas, but works on objects that implement __call__(). by replacing a number of lambdas in Mock(spec=lambda: ...) objects tests we avoid these incorrect test failures.

blinker tries to inspect the value being sent for being a coroutine.
this raises on lambdas, but works on objects that implement
`__call__()`. by replacing a number of lambdas in `Mock(spec=lambda: ...`)
objects tests we avoid these incorrect test failures.
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