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

switch noop from function to class #4322

Merged
merged 5 commits into from
Nov 9, 2019
Merged

switch noop from function to class #4322

merged 5 commits into from
Nov 9, 2019

Conversation

AtomsForPeace
Copy link
Contributor

@AtomsForPeace AtomsForPeace commented Nov 4, 2019

What do these changes do?

Trying to remove the warning RuntimeWarning: coroutine 'noop' was never awaited that is described in #4282.

Are there changes in behavior for the user?

No

Related issue number

#4282

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."

@psf-chronographer psf-chronographer bot added the bot:chronographer:provided There is a change note present in this PR label Nov 4, 2019
@AtomsForPeace
Copy link
Contributor Author

@asvetlov Any ideas about the one test that fails with this change?

@asvetlov
Copy link
Member

asvetlov commented Nov 8, 2019

The evidence of the mocked test reliability.
Please feel free to kick this test out, it is completely useless and tests nothing.
The real test should use plain TCP socket to emulate falsy behavior.

@AtomsForPeace
Copy link
Contributor Author

Ok, I've removed the test test_data_received_error. I could switch to it being skipped if you want

@codecov-io
Copy link

codecov-io commented Nov 8, 2019

Codecov Report

Merging #4322 into master will decrease coverage by 0.03%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #4322      +/-   ##
==========================================
- Coverage   97.55%   97.51%   -0.04%     
==========================================
  Files          43       43              
  Lines        8862     8862              
  Branches     1389     1389              
==========================================
- Hits         8645     8642       -3     
- Misses         93       96       +3     
  Partials      124      124
Impacted Files Coverage Δ
aiohttp/helpers.py 96.15% <100%> (ø) ⬆️
aiohttp/web_protocol.py 91.81% <0%> (-0.88%) ⬇️

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 f0bd628...c1d7918. Read the comment docs.

@asvetlov asvetlov merged commit 2ca3c38 into aio-libs:master Nov 9, 2019
@asvetlov
Copy link
Member

asvetlov commented Nov 9, 2019

Thanks!

asvetlov pushed a commit that referenced this pull request Nov 9, 2019
(cherry picked from commit 2ca3c38)

Co-authored-by: Adam Bannister <[email protected]>
asvetlov added a commit that referenced this pull request Nov 9, 2019
* [3.7] switch noop from function to class (#4322)
(cherry picked from commit 2ca3c38)

Co-authored-by: Adam Bannister <[email protected]>
asvetlov pushed a commit that referenced this pull request Oct 16, 2020
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.

3 participants