How to speedup pytest-cov when faced with slow imports from external packages
I have some situations where pytest becomes extremely slow because of a combination of --cov
option and import from external packages. I’m using gpt_researcher
in this example, but I’ve seen similar slowdowns with other packages in the past.