-
Notifications
You must be signed in to change notification settings - Fork 159
Alternative policies support #174
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
Conversation
The tests are failing atm because in the test scenario (and in the toy project I've created to test this) the |
One fix is to override the
This is boilerplate though, let's see if we can come up with something better. |
Fun fact: the |
The solution I'm leaning towards is making |
I use black too (and prospector)
This sounds good. What about the following, as an easy solution :
that could be overwritten by customer:
With this option you can force order:
|
Hm actually the suggestion of having users override the policy in the loop fixture is simpler, but less obvious. That might be the way to go if we document it properly. Ideally you wouldn't need to override the policy, overriding the loop would be enough (although you might need to override the policy if the code you're testing deals with it directly). |
So I understand that option 2 is the way to go. Fine, it sounds good to me. |
@alblasco Actually I was going for 1.a. Seems the simplest, we just need to document it. |
Python ZEN: Simple is better than complex. |
@Tinche Can you think of another use case covered by this PR? Is this something we want to pursue? |
Agree with @seifertm |
@seifertm agreed! thanks |
Introduces code for handling custom event loop policies and tests for it.
Apologies for reformatting noise, I'm using black now.