JamesHutchison / pytest-hot-reloading

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

Fix pytest collection cache not being copied from #84

Closed JamesHutchison closed 7 months ago

JamesHutchison commented 7 months ago

The pytest collection cache wasn't being copied from, resulting in the cached objects being inadvertently modified more than expected. This would manifest as strange errors when you ran something a third time or later, typically from fixture value reuse, and only on tests that had fixtures that were affected.

Deep copies cannot be created, so the cached objects are done using a best effort copy.