Skip to content

Commit

Permalink
Add TODO for update_auth exclusion
Browse files Browse the repository at this point in the history
  • Loading branch information
cbornet committed Feb 8, 2025
1 parent 106d765 commit 08e02f5
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,13 @@

@pytest.fixture(autouse=True)
def blockbuster() -> Iterator[None]:
with blockbuster_ctx("aiohttp", excluded_modules=["aiohttp.pytest_plugin", "aiohttp.test_utils"]) as bb:
bb.functions["io.TextIOWrapper.read"].can_block_in(
"aiohttp/client_reqrep.py", "update_auth"
)
bb.functions["os.stat"].can_block_in("aiohttp/client_reqrep.py", "update_auth")
with blockbuster_ctx(
"aiohttp", excluded_modules=["aiohttp.pytest_plugin", "aiohttp.test_utils"]
) as bb:
# TODO: Fix blocking call in ClientRequest's constructor.
# https://github.com/aio-libs/aiohttp/issues/10435
for func in ["io.TextIOWrapper.read", "os.stat"]:
bb.functions[func].can_block_in("aiohttp/client_reqrep.py", "update_auth")
yield


Expand Down

0 comments on commit 08e02f5

Please sign in to comment.