Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: aiohttp 3.9 _writer can't await #248

Merged
merged 2 commits into from
Nov 17, 2023
Merged

fix: aiohttp 3.9 _writer can't await #248

merged 2 commits into from
Nov 17, 2023

Conversation

JCHacking
Copy link
Contributor

@JCHacking JCHacking commented Nov 9, 2023

Fixed the problem mentioned in bug #247 and aio-libs/aiohttp#7675 (comment)

aioresponses/core.py Outdated Show resolved Hide resolved
@JCHacking
Copy link
Contributor Author

Hi, Can any maintainer check this? This weekend if all goes according to plan aiohttp 3.9 will be released, and at that time this change will be necessary.

@pnuckowski pnuckowski merged commit 444aa49 into pnuckowski:master Nov 17, 2023
20 checks passed
@JCHacking JCHacking deleted the fix_aiohttp3.9_writer_can_not_await branch November 18, 2023 11:29
@JCHacking
Copy link
Contributor Author

When could a new version with this correction be released? aiohttp 3.9 has already been released and I need this fix to be published in a release so I can update my systems.

@Future-Outlier
Copy link

Can the new version of this be released?

@Future-Outlier
Copy link

@pnuckowski If possible, please release it, I am an upcoming committer from Flyte, we need it.
Thank you very much!

@JCHacking
Copy link
Contributor Author

@pnuckowski If possible, please release it, I am an upcoming committer from Flyte, we need it.
Thank you very much!

Ya esta publicada, la versión 0.7.6

ludwigschwardt added a commit to ska-sa/katsdpmodels that referenced this pull request Sep 16, 2024
Now that docker-base has aiohttp 3.9.3, get the latest aioresponses.
This fixes a bug that "object Mock can't be used in 'await' expression"
(see pnuckowski/aioresponses#248), which affects the 7 unit tests in
test_fetch_aiohttp using the `mock_aioresponses` fixture.
ludwigschwardt added a commit to ska-sa/katsdpmodels that referenced this pull request Sep 16, 2024
Now that docker-base has aiohttp 3.9.3, get the latest aioresponses.
This fixes a bug that "object Mock can't be used in 'await' expression"
(see pnuckowski/aioresponses#248), which affects the 7 unit tests in
test_fetch_aiohttp using the `mock_aioresponses` fixture.

It seems that aioresponses 0.7.6 needs Python 3.7 while katsdpmodels
itself still only requires Python 3.6. This discrepancy seems OK for
now as the tests are run on Python 3.8 and soon the minimum version
will be bumped anyway.
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.

4 participants