You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pytest makes not attempt to unload the test and packaging modules which were imported during the test run. It could probably do that, maybe there is a plugin already doing this. But i usually consider it better for isolation to run tests in a subprocess which is what "pytest-xdist" is doing in its "loop-on-failure" mode.
I'm using
pytest.main
in a plugin. It runs tests and uses Watchdog to listen for file changes. When a file changes, it runspytest.main
again.Pytest seems to be using a cached version of the tests instead of re-running them with new results.
The text was updated successfully, but these errors were encountered: