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

Test wrapper - del some variables to give allow objects to be destroyed at test tear down. #439

Open
stuaxo opened this issue Feb 14, 2023 · 0 comments

Comments

@stuaxo
Copy link
Contributor

stuaxo commented Feb 14, 2023

This bit of code looked weird at first
image

But maybe we do want to allow cleanup here, just doing a bit more

We could do -

del wrapper

Or more explicitly

del wrapped.__globals__
del wrapped

It's a small fix, but may help some objects get destroyed earlier than they would otherwise.

@stuaxo stuaxo changed the title Test wrapper - delete wrapper Test wrapper - del some variables to give allow objects to be destroyed at test tear down. Feb 14, 2023
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

No branches or pull requests

1 participant