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

adds assertion to check for deleted contexts #147

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

rdaly525
Copy link
Collaborator

This can occur if context.delete is called, then the context is used again.

@rdaly525 rdaly525 requested a review from leonardt October 27, 2020 15:57
@@ -263,6 +265,7 @@ def delete(self):
None check for all the API code, instead we assume if this is used that
the user is certain that the context object will no longer be used.
"""
print("DELETING", self)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should either remove this so it doesn't pollute stdout or use the logging module so it's surpressed by default.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

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.

2 participants