Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add checks to avoid patching debugger modules #1092

Merged
merged 1 commit into from
Nov 24, 2024

Conversation

mrbean-bremen
Copy link
Member

@mrbean-bremen mrbean-bremen commented Nov 23, 2024

  • added Patcher.RUNTIME_SKIPMODULES to allow to skip modules whose name starts with specific strings, if the related debuuger is loaded
  • only done for debugger used in PyCharm and VSCode

I have not added any documentation, as this is still experimental. We have to see if this is sufficient to fix the problems with the debugger (see #1083), or if more is needed.

Tasks

  • Unit tests added that reproduce the issue or prove feature is working
  • Fix or feature added
  • Entry to release notes added
  • Pre-commit CI shows no errors
  • Unit tests passing

- added Patcher.RUNTIME_SKIPMODULES to allow to skip
  modules whose name starts with specific strings,
  if the related debuuger is loaded
- only done for debugger used in PyCharm and VSCode
@mrbean-bremen mrbean-bremen merged commit bc74384 into pytest-dev:main Nov 24, 2024
56 of 57 checks passed
@mrbean-bremen mrbean-bremen deleted the skip_debug_modules branch November 24, 2024 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant