Skip to content

gh-108927: Fix removing testing modules from sys.modules - #108952

Merged
serhiy-storchaka merged 20 commits into
python:mainfrom
serhiy-storchaka:regretest-no-remove-test-module
Dec 4, 2023
Merged

serhiy-storchaka merged 20 commits into
python:mainfrom
serhiy-storchaka:regretest-no-remove-test-module

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Sep 5, 2023 •

Copy link
Copy Markdown
Member

The code that does this properly never worked since Python 3.0.

And removing only the tested module breaks import machinery if it has submodules used in other tests.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants