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

allow prepare/bootstrap to be used as a context manager #2760

Merged
merged 1 commit into from
Sep 4, 2016

Conversation

mmerickel
Copy link
Member

closes #1822

self.assertEqual(pushed['registry'], registry)
self.assertEqual(pushed['request'].registry, registry)
self.assertEqual(root.a, (request,))
info['closer']()
Copy link
Member

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?

Copy link
Member Author

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.

@digitalresistor
Copy link
Member

LGTM.

@mmerickel mmerickel merged commit b36dd80 into Pylons:master Sep 4, 2016
mmerickel added a commit that referenced this pull request Sep 4, 2016
@mmerickel mmerickel deleted the feature/with-bootstrap branch November 29, 2020 03:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

make pyramid.paster.bootstrap into a context manager
2 participants