File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -80,6 +80,14 @@ def blockbuster(request: pytest.FixtureRequest) -> Iterator[None]:
80
80
bb .functions [func ].can_block_in (
81
81
"aiohttp/web_urldispatcher.py" , "add_static"
82
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 ()
83
91
yield
84
92
85
93
You can’t perform that action at this time.
0 commit comments