-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Add debug argument to web.run_app()
#3796
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good but a few things should be improved.
- Add
asyncio.set_event_loop(None)at the end ofrun_app(), just afterloop.close() - Document
debugparameter here: https://github.com/aio-libs/aiohttp/blame/master/docs/web_reference.rst#L2698
Co-Authored-By: Andrew Svetlov <andrew.svetlov@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Call
asyncio.set_event_loop(None)at the end of the function - Update
client_reference.rstto mentiondebugparameter inrun_appdocs
Co-Authored-By: Andrew Svetlov <andrew.svetlov@gmail.com>
Co-Authored-By: Andrew Svetlov <andrew.svetlov@gmail.com>
|
The code looks good. |
|
thanks |
|
Good! |
|
|
|
but this seems about argument position. but that's keyword-only argument in the test hanged. how did last build success? |
|
The code from PR is correct, tests should be updated to work with it. |
|
simply replacing web.run_app() with web._run_app() doesn't work |
|
@NewUserHa if you have no time/energy to finish the PR -- that's sad but ok. Mechanical |
|
no. need I go to find why by myself? |
|
I can't get the change of |
This comment has been minimized.
This comment has been minimized.
Codecov Report
@@ Coverage Diff @@
## master #3796 +/- ##
==========================================
+ Coverage 97.95% 98.54% +0.59%
==========================================
Files 43 43
Lines 8589 11382 +2793
Branches 1375 2250 +875
==========================================
+ Hits 8413 11216 +2803
+ Misses 74 72 -2
+ Partials 102 94 -8
Continue to review full report at Codecov.
|
web.run_app()
What do these changes do?
Add debug argument to web.run_app() & new_event_loop()
Are there changes in behavior for the user?
no?
Related issue number
Resolves #3793
Checklist
CONTRIBUTORS.txtCHANGESfolder<issue_id>.<type>for example (588.bugfix)issue_idchange it to the pr id after creating the pr.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.