We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09396d0 commit 872cab6Copy full SHA for 872cab6
1 file changed
tests/conftest.py
@@ -80,6 +80,14 @@ def blockbuster(request: pytest.FixtureRequest) -> Iterator[None]:
80
bb.functions[func].can_block_in(
81
"aiohttp/web_urldispatcher.py", "add_static"
82
)
83
+ # Note: coverage.py uses locking internally which can cause false positives
84
+ # in blockbuster when it instruments code. This is particularly problematic
85
+ # on Windows where it can lead to flaky test failures.
86
+ # Additionally, we're not particularly worried about threading.Lock.acquire happening
87
+ # by accident in this codebase as we primarily use asyncio.Lock for
88
+ # synchronization in async code.
89
+ # Allow lock.acquire calls to prevent these false positives
90
+ bb.functions["threading.Lock.acquire"].deactivate()
91
yield
92
93
0 commit comments