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 compatibility with aiohttp==3.7.0 #174

Merged
merged 1 commit into from
Oct 28, 2020
Merged

Fix compatibility with aiohttp==3.7.0 #174

merged 1 commit into from
Oct 28, 2020

Conversation

davidwtbuxton
Copy link
Contributor

The new version of aiohttp has made limit a required argument for the
StreamReader class. This change adds an explicit limit of 2 ** 16 which
is the same as what aiohttp uses internally.

Fixes #173

@codecov-io
Copy link

codecov-io commented Oct 24, 2020

Codecov Report

Merging #174 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #174   +/-   ##
=======================================
  Coverage   97.95%   97.95%           
=======================================
  Files           2        2           
  Lines         294      294           
=======================================
  Hits          288      288           
  Misses          6        6           
Impacted Files Coverage Δ
aioresponses/compat.py 93.10% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e61977f...bf19193. Read the comment docs.

The new version of aiohttp has made `limit` a required argument for the
StreamReader class. This change adds an explicit limit of 2 ** 16 which
is the same as what aiohttp uses internally.

Using `limit` as a keyword (rather than a positional argument) keeps
compatibility with previous versions of aiohttp.

Fixes #173
@ajcolaizzi-decentrix
Copy link

@davidwtbuxton Thanks for the fix, we are running into this locally now. Any idea when this will be released?

@jayvdb
Copy link

jayvdb commented Oct 28, 2020

ping @pnuckowski

Copy link
Contributor

@jsoucheiron jsoucheiron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@pnuckowski pnuckowski merged commit 8c7d967 into pnuckowski:master Oct 28, 2020
@jayvdb
Copy link

jayvdb commented Oct 28, 2020

thx @pnuckowski . Could you tag and release this one soon. It is breaking CI for other projects.

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.

Tests fail in master with aiohttp==3.7.0, "TypeError"
6 participants