JamesHutchison / pytest-hot-reloading

A hot reloading pytest daemon, implemented as a plugin
MIT License
94 stars 2 forks source link

Add session ref count management #27

Closed JamesHutchison closed 1 year ago

JamesHutchison commented 1 year ago

This fixes an issue where prior sessions had references to them still hanging around due to things like session level fixtures. This attempts to fix it by keep track of prior sessions, updating their dicts to the latest session, and then incorporating clean-up on the sessions that don't seem important.