Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
0b9b763
Fix blocking I/O to load netrc when creating requests
bdraco Oct 11, 2025
2ff3b70
changes
bdraco Oct 11, 2025
c785713
preen
bdraco Oct 11, 2025
5d50745
preen
bdraco Oct 11, 2025
720d3d5
cover raise case
bdraco Oct 11, 2025
2cca6ed
Update tests/conftest.py
bdraco Oct 11, 2025
3719848
Update tests/test_client_session.py
bdraco Oct 11, 2025
a134768
Update tests/test_client_session.py
bdraco Oct 11, 2025
34af199
Update tests/test_client_session.py
bdraco Oct 11, 2025
71d3a5b
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 11, 2025
4efa317
add monkey
bdraco Oct 11, 2025
1a1e579
Update tests/test_client_functional.py
bdraco Oct 11, 2025
130aef4
Update tests/test_client_functional.py
bdraco Oct 11, 2025
9de96aa
Update tests/test_client_functional.py
bdraco Oct 11, 2025
ddf9d4d
Update tests/test_client_session.py
bdraco Oct 11, 2025
5858b5d
Update tests/test_client_session.py
bdraco Oct 11, 2025
22efeb9
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 11, 2025
43463c5
preen
bdraco Oct 11, 2025
ca0f7cf
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Oct 11, 2025
dad2c27
dry
bdraco Oct 11, 2025
cbf6e15
Merge remote-tracking branch 'upstream/netrc_blockingio_fix' into net…
bdraco Oct 11, 2025
a66abde
preen
bdraco Oct 11, 2025
d274ff7
lint
bdraco Oct 11, 2025
db59ba7
lint
bdraco Oct 11, 2025
f629a11
Update aiohttp/client.py
bdraco Oct 14, 2025
ecba61b
Merge branch 'master' into netrc_blockingio_fix
bdraco Oct 14, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 11, 2025
commit ca0f7cf1f6a4397687cd1ac855c22b6849e7e41d
12 changes: 8 additions & 4 deletions tests/test_client_functional.py
Original file line number Diff line number Diff line change
Expand Up @@ -3765,8 +3765,10 @@ async def handler(request: web.Request) -> web.Response:
assert content["headers"]["Authorization"] == "Basic bmV0cmNfdXNlcjpuZXRyY19wYXNz"


@pytest.mark.usefixtures('no_netrc')
async def test_netrc_auth_skipped_without_env_var(aiohttp_client: AiohttpClient) -> None:
@pytest.mark.usefixtures("no_netrc")
async def test_netrc_auth_skipped_without_env_var(
aiohttp_client: AiohttpClient,
) -> None:
"""Test that netrc authentication is skipped when NETRC env var is not set."""

async def handler(request: web.Request) -> web.Response:
Expand All @@ -3784,8 +3786,10 @@ async def handler(request: web.Request) -> web.Response:
assert "Authorization" not in content["headers"]


@pytest.mark.usefixtures('netrc_default_contents')
async def test_netrc_auth_overridden_by_explicit_auth(aiohttp_client: AiohttpClient) -> None:
@pytest.mark.usefixtures("netrc_default_contents")
async def test_netrc_auth_overridden_by_explicit_auth(
aiohttp_client: AiohttpClient,
) -> None:
"""Test that explicit auth parameter overrides netrc authentication."""

async def handler(request: web.Request) -> web.Response:
Expand Down