robotpy / pyfrc

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

pytest_plugin: GC after resetting command scheduler #233

Closed auscompgeek closed 2 months ago

auscompgeek commented 2 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.