Comments (1)
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.
I concur here.
We can technically run each tests in a new process now since the CLI doesn't have to import the robot code.
I've used pytest-forked previously, but that doesn't work on Windows.
Maybe it's time to solve #212 and use pytest-xdist?
from pyfrc.
Related Issues (20)
- Provide access to Robot class via physics HOT 1
- Vision Simulator Referencing Old PhysicsInterface
- Remove exec from frcRunRobot.sh HOT 2
- Provide mechanism to pass git hash / other things as part of deploy HOT 14
- pyfrc.physics.core uses deprecated imp module HOT 1
- [BUG]: tests do not clear solenoid usage
- [BUG]: slow deploy HOT 2
- [BUG]: VisionSim computes the angle in radians HOT 1
- Add mypy or pyright checker on deploy HOT 1
- PhysicsEngine should be a Protocol for type checking HOT 3
- pyfrc tests don't work with pytest-xdist HOT 1
- Change pkg-resources stuff to not require strict versioning HOT 1
- Read team number/robot hostname from pyproject.toml HOT 1
- Basic tests don't run on blue or red alliance HOT 1
- Deploy fails because os.getlogin fails HOT 3
- [BUG]: Tests and Debugger don't get along well. HOT 1
- [BUG]: impossible to use profiler subcommand on sim
- Run tests in subprocess instead of reloading robot code
- [BUG]: wpilib.SendableChooser subscriptions not cleaned between tests
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyfrc.