-
Notifications
You must be signed in to change notification settings - Fork 36
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
[BUG] Cleanup doesn't occur correctly if tests fail #229
Comments
I concur here.
I've used pytest-forked previously, but that doesn't work on Windows. Maybe it's time to solve #212 and use pytest-xdist? |
An alternative: we could use the I do like just solving the problem with xdist though. |
Fixed in #238 |
I think what's happening is that when pytest is processing the exception, the traceback holds references to local objects (including the robot) and so the robot and related objects (in some cases) are never fully freed, so when the hal handles and other things are cleared at the end of the test those objects are all orphaned. Several solutions come to mind:
I believe this is causing robotpy/robotpy-navx#30, but I don't have conclusive proof.
The text was updated successfully, but these errors were encountered: