]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-69605: In test_pyrepl.test_already_imported*, invalidate FS import caches (#143436)
authorŁukasz Langa <lukasz@langa.pl>
Mon, 5 Jan 2026 17:00:48 +0000 (18:00 +0100)
committerGitHub <noreply@github.com>
Mon, 5 Jan 2026 17:00:48 +0000 (18:00 +0100)
commit4f9a8d075ee52b8f56aca14102c8bf9fd6f3c512
tree2ab12081a8246c2a452521b44482dbff1a84d9a6
parentbfac54d8611f60c5b19640c410cea696a81457bb
gh-69605: In test_pyrepl.test_already_imported*, invalidate FS import caches (#143436)

This makes the test robust against file systems with low timestamp resolution, which otherwise would fail to re-import in the tight loop of the test.
Lib/test/test_pyrepl/test_pyrepl.py