robotpy / pyfrc

python3 library designed to make developing RobotPy-based code easier!
MIT License
52 stars 35 forks source link

pytest_plugin: GC after resetting command scheduler #233

Closed auscompgeek closed 4 months ago

auscompgeek commented 4 months ago

Problem

Subsystems holding references to HAL objects, e.g. transitively via rev.CANSparkMax, cause every second pyfrc test to fail.

Solution

GC after resetting the CommandScheduler.