Skip to content

Comments

adds assertion to check for deleted contexts#147

Open
rdaly525 wants to merge 2 commits intomasterfrom
add-assert
Open

adds assertion to check for deleted contexts#147
rdaly525 wants to merge 2 commits intomasterfrom
add-assert

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
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