Skip to content

tests: do not reload the tags module#1152

Merged
henryiii merged 1 commit intopypa:mainfrom
henryiii:henryiiii/tests/noreload
Apr 8, 2026
Merged

tests: do not reload the tags module#1152
henryiii merged 1 commit intopypa:mainfrom
henryiii:henryiiii/tests/noreload

Conversation

@henryiii
Copy link
Copy Markdown
Contributor

@henryiii henryiii commented Apr 8, 2026

Reloading the module has bad side effects. One of them is that tags.py cannot contain exceptions, since they get replaced on reload, causing catching them to fail (see #1150), which can cause running this test first to break things after it. Let's make this a helper function and unit test that instead.

Discovered in #1150 using claude-haiku-4.5 in VSCode's copilot.

Signed-off-by: Henry Schreiner <henryfs@princeton.edu>
@henryiii henryiii force-pushed the henryiiii/tests/noreload branch from add7298 to f50cd7d Compare April 8, 2026 22:24
@henryiii henryiii mentioned this pull request Apr 8, 2026
@henryiii henryiii merged commit f294d52 into pypa:main Apr 8, 2026
57 checks passed
@henryiii henryiii deleted the henryiiii/tests/noreload branch April 8, 2026 22:35
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.

3 participants