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 readuntil work #6810

Merged
merged 10 commits into from
Nov 10, 2022
Merged

Fix readuntil work #6810

merged 10 commits into from
Nov 10, 2022

Conversation

Tingaev
Copy link
Contributor

@Tingaev Tingaev commented Jul 4, 2022

What do these changes do?

Fix work readuntil() with separator length more one character

Are there changes in behavior for the user?

No

Related issue number

Fixes #6701

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes
  • If you provide code modification, please add yourself to CONTRIBUTORS.txt
    • The format is <Name> <Surname>.
    • Please keep alphabetical order, the file is sorted by names.
  • Add a new news fragment into the CHANGES folder
    • name it <issue_id>.<type> for example (588.bugfix)
    • if you don't have an issue_id change it to the pr id after creating the pr
    • ensure type is one of the following:
      • .feature: Signifying a new feature.
      • .bugfix: Signifying a bug fix.
      • .doc: Signifying a documentation improvement.
      • .removal: Signifying a deprecation or removal of public API.
      • .misc: A ticket has been closed, but it is not of interest to users.
    • Make sure to use full sentences with correct case and punctuation, for example: "Fix issue with non-ascii contents in doctest text files."

@Tingaev Tingaev requested review from webknjaz and asvetlov as code owners July 4, 2022 09:48
@psf-chronographer psf-chronographer bot added the bot:chronographer:provided There is a change note present in this PR label Jul 4, 2022
@Tingaev Tingaev changed the title Bigfix 6701 Fix readuntil work Jul 4, 2022
tests/test_streams.py Outdated Show resolved Hide resolved
@codecov
Copy link

codecov bot commented Jul 4, 2022

Codecov Report

Merging #6810 (fb0e463) into master (1f97c55) will decrease coverage by 0.04%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##           master    #6810      +/-   ##
==========================================
- Coverage   97.50%   97.45%   -0.05%     
==========================================
  Files         103      103              
  Lines       29990    29999       +9     
  Branches     3643     3651       +8     
==========================================
- Hits        29243    29237       -6     
- Misses        567      581      +14     
- Partials      180      181       +1     
Flag Coverage Δ
CI-GHA 97.36% <100.00%> (-0.05%) ⬇️
OS-Linux 96.99% <100.00%> (-0.06%) ⬇️
OS-Windows 95.39% <100.00%> (+<0.01%) ⬆️
OS-macOS 96.69% <100.00%> (+<0.01%) ⬆️
Py-3.10.8 97.16% <100.00%> (-0.06%) ⬇️
Py-3.11.0 96.56% <100.00%> (+<0.01%) ⬆️
Py-3.7.15 96.89% <100.00%> (+<0.01%) ⬆️
Py-3.7.9 95.28% <100.00%> (+<0.01%) ⬆️
Py-3.8.10 ?
Py-3.8.14 96.78% <100.00%> (+<0.01%) ⬆️
Py-3.9.13 95.17% <100.00%> (+<0.01%) ⬆️
Py-3.9.14 96.58% <100.00%> (+<0.01%) ⬆️
Py-3.9.15 96.76% <100.00%> (+<0.01%) ⬆️
Py-pypy7.3.9 ?
VM-macos 96.69% <100.00%> (+<0.01%) ⬆️
VM-ubuntu 96.99% <100.00%> (-0.06%) ⬇️
VM-windows 95.39% <100.00%> (+<0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
aiohttp/streams.py 97.45% <100.00%> (ø)
tests/test_streams.py 100.00% <100.00%> (ø)
tests/autobahn/client/client.py 46.42% <0.00%> (-50.00%) ⬇️
tests/autobahn/test_autobahn.py 98.33% <0.00%> (-1.67%) ⬇️

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@Tingaev Tingaev requested a review from Dreamsorcerer July 6, 2022 08:18
tests/test_streams.py Outdated Show resolved Hide resolved
@Tingaev Tingaev requested a review from Dreamsorcerer July 10, 2022 17:47
@Tingaev
Copy link
Contributor Author

Tingaev commented Nov 10, 2022

@Dreamsorcerer ping

@Dreamsorcerer Dreamsorcerer merged commit ec714c8 into aio-libs:master Nov 10, 2022
@patchback
Copy link
Contributor

patchback bot commented Nov 10, 2022

Backport to 3.9: 💚 backport PR created

✅ Backport PR branch: patchback/backports/3.9/ec714c820fd12aebe8d5d8594cd50345164d6bb0/pr-6810

Backported as #7079

🤖 @patchback
I'm built with octomachinery and
my source is open — https://github.com/sanitizers/patchback-github-app.

patchback bot pushed a commit that referenced this pull request Nov 10, 2022
<!-- Thank you for your contribution! -->

## What do these changes do?

Fix work `readuntil()` with separator length more one character
<!-- Please give a short brief about these changes. -->

## Are there changes in behavior for the user?
No
<!-- Outline any notable behaviour for the end users. -->

## Related issue number
Fixes #6701
<!-- Are there any issues opened that will be resolved by merging this
change? -->

## Checklist

- [x] I think the code is well written
- [x] Unit tests for the changes exist
- [x] Documentation reflects the changes
- [x] If you provide code modification, please add yourself to
`CONTRIBUTORS.txt`
  * The format is &lt;Name&gt; &lt;Surname&gt;.
  * Please keep alphabetical order, the file is sorted by names.
- [x] Add a new news fragment into the `CHANGES` folder
  * name it `<issue_id>.<type>` for example (588.bugfix)
* if you don't have an `issue_id` change it to the pr id after creating
the pr
  * ensure type is one of the following:
    * `.feature`: Signifying a new feature.
    * `.bugfix`: Signifying a bug fix.
    * `.doc`: Signifying a documentation improvement.
    * `.removal`: Signifying a deprecation or removal of public API.
* `.misc`: A ticket has been closed, but it is not of interest to users.
* Make sure to use full sentences with correct case and punctuation, for
example: "Fix issue with non-ascii contents in doctest text files."

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Sam Bull <aa6bs0@sambull.org>
(cherry picked from commit ec714c8)
Dreamsorcerer pushed a commit that referenced this pull request Nov 11, 2022
**This is a backport of PR #6810 as merged into master
(ec714c8).**

<!-- Thank you for your contribution! -->

## What do these changes do?

Fix work `readuntil()` with separator length more one character
<!-- Please give a short brief about these changes. -->

## Are there changes in behavior for the user?
No
<!-- Outline any notable behaviour for the end users. -->

## Related issue number
Fixes #6701
<!-- Are there any issues opened that will be resolved by merging this
change? -->

## Checklist

- [x] I think the code is well written
- [x] Unit tests for the changes exist
- [x] Documentation reflects the changes
- [x] If you provide code modification, please add yourself to
`CONTRIBUTORS.txt`
  * The format is &lt;Name&gt; &lt;Surname&gt;.
  * Please keep alphabetical order, the file is sorted by names.
- [x] Add a new news fragment into the `CHANGES` folder
  * name it `<issue_id>.<type>` for example (588.bugfix)
* if you don't have an `issue_id` change it to the pr id after creating
the pr
  * ensure type is one of the following:
    * `.feature`: Signifying a new feature.
    * `.bugfix`: Signifying a bug fix.
    * `.doc`: Signifying a documentation improvement.
    * `.removal`: Signifying a deprecation or removal of public API.
* `.misc`: A ticket has been closed, but it is not of interest to users.
* Make sure to use full sentences with correct case and punctuation, for
example: "Fix issue with non-ascii contents in doctest text files."

Co-authored-by: Matvey <40757170+Tingaev@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bot:chronographer:provided There is a change note present in this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error in StreamReader#readuntil
2 participants