-
Notifications
You must be signed in to change notification settings - Fork 888
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
allow prepare/bootstrap to be used as a context manager #2760
Conversation
self.assertEqual(pushed['registry'], registry) | ||
self.assertEqual(pushed['request'].registry, registry) | ||
self.assertEqual(root.a, (request,)) | ||
info['closer']() |
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.
Possibly add a comment that you are calling closer here manually to clean up, before replacing it with a testable closer?
Also, why not just have your new closer call the original closer instead?
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.
Sure, I will fix this to be more clear.
LGTM. |
b832c65
to
b36dd80
Compare
closes #1822