<#17937 Do not restart interactive `pytest` sessio...
# github-notifications
q
#17937 Do not restart interactive `pytest` sessions Issue created by kaos Is your feature request related to a problem? Please describe. When running
pants test --debug ...
I may be in the middle of a debugging session (by means of
breakpoint()
in the tests for instance), and don't appreciate it when pants throws
KeyboardInterrupt
in an attempt to restart due to changed sources.. Describe the solution you'd like When invoking an interactive
pytest
session, mark it as non-restartable. Describe alternatives you've considered Manually disabling pants file watching feature for the debug session. This is tedious and easily forgotten/overlooked. Additional context This is not a real issue as long as I remember to not edit/save any sources while debugging.. alas, my mind isn't there in the moment--so this becomes a nuance. pantsbuild/pants