-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
During tests: the on_startup signal is sent before the loop is set #2060
Labels
Comments
cecton
added a commit
to cecton/aiohttp
that referenced
this issue
Jul 7, 2017
5 tasks
cecton
added a commit
to cecton/aiohttp
that referenced
this issue
Jul 7, 2017
cecton
added a commit
to cecton/aiohttp
that referenced
this issue
Jul 7, 2017
cecton
changed the title
During tests: the on_startup signal is sent before the loop is set during
During tests: the on_startup signal is sent before the loop is set
Jul 8, 2017
asvetlov
pushed a commit
that referenced
this issue
Jul 10, 2017
Fixed by #2068 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Long story short
Between the version 2.1 and 2.2 we change the order of when the signal on_startup is sent during the tests and when we make the handlers. Because of that, all the
on_startup
hooks doesn't have a loop inapp.loop
.ed28add
Expected behaviour
Keep the behavior consistent when running the app within or without a test.
Actual behaviour
app.loop
is None during a test but it is an event loop when running withweb.run_app
.Steps to reproduce
Your environment
ArchLinux, Python 3.6
The text was updated successfully, but these errors were encountered: