Skip to content

gh-134179: use sys._clear_internal_caches isntead of deprecated sys._clear_type_cache at test_cmd_line#134180

Merged
vstinner merged 2 commits intopython:mainfrom
alex-semenyuk:use_sys_clear_internal_caches
Feb 9, 2026
Merged

gh-134179: use sys._clear_internal_caches isntead of deprecated sys._clear_type_cache at test_cmd_line#134180
vstinner merged 2 commits intopython:mainfrom
alex-semenyuk:use_sys_clear_internal_caches

Conversation

@alex-semenyuk
Copy link
Contributor

@alex-semenyuk alex-semenyuk commented May 18, 2025

Copy link
Member

@vstinner vstinner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@vstinner vstinner added the needs backport to 3.14 bugs and security fixes label Feb 9, 2026
@vstinner vstinner merged commit dd2da42 into python:main Feb 9, 2026
51 checks passed
@miss-islington-app
Copy link

Thanks @alex-semenyuk for the PR, and @vstinner for merging it 🌮🎉.. I'm working now to backport this PR to: 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Feb 9, 2026
…ythonGH-134180)

Use sys._clear_internal_caches() instead of deprecated sys._clear_type_cache() at test_cmd_line.
(cherry picked from commit dd2da42ea479c32a4260463b47e1b58877d07bdc)

Co-authored-by: alexey semenyuk <alexsemenyuk88@gmail.com>
@bedevere-app
Copy link

bedevere-app bot commented Feb 9, 2026

GH-144631 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.14 bugs and security fixes label Feb 9, 2026
@vstinner
Copy link
Member

vstinner commented Feb 9, 2026

Merged, thanks.

vstinner pushed a commit that referenced this pull request Feb 9, 2026
…H-134180) (#144631)

gh-134179: Use sys._clear_internal_caches() at test_cmd_line (GH-134180)

Use sys._clear_internal_caches() instead of deprecated sys._clear_type_cache() at test_cmd_line.
(cherry picked from commit dd2da42)

Co-authored-by: alexey semenyuk <alexsemenyuk88@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants