Skip to content

refactor: use importlib for dynamic imports - #972

Merged
tobiasraabe merged 3 commits into
mainfrom
codex/use-importlib-for-dynamic-imports
Aug 28, 2026
Merged

tobiasraabe merged 3 commits into
mainfrom
codex/use-importlib-for-dynamic-imports

Conversation

@tobiasraabe

Copy link
Copy Markdown
Member

Summary

  • use importlib.import_module when loading custom PDB classes
  • use the same documented API when resolving dotted warning categories
  • add focused tests for both dynamic-import paths and a changelog entry

Adapted from pytest commit pytest-dev/pytest@91cfa28.

Validation

  • uv run --group test pytest tests/test_debugging.py tests/test_warnings.py
  • just typing
  • just lint

@tobiasraabe
tobiasraabe enabled auto-merge August 28, 2026 21:12
@tobiasraabe
tobiasraabe added this pull request to the merge queue Aug 28, 2026
Merged via the queue into main with commit 2a3bcc7 Aug 28, 2026
23 checks passed
@tobiasraabe
tobiasraabe deleted the codex/use-importlib-for-dynamic-imports branch August 28, 2026 21:23
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