chore: merge main into the p3 fixes

This commit is contained in:
Abdessamad Derraz committed 2026-10-26 21:01:32 +01:00
commit 7b49e3bbed
61 files changed
+12872 -526

No files matched your search

+5 -2
View File
@@ -743,8 +743,11 @@ class ARefusalTheProbeDoesNotRaise(unittest.TestCase):
install._DETECTION_REFUSED.clear()
self.addCleanup(install._DETECTION_REFUSED.clear)
quiet = mock.patch.object(install.Path, "exists", lambda self: False)
with quiet, mock.patch.object(install._SETUP_SEARCH, "active", True, create=True), \
contextlib.redirect_stderr(io.StringIO()):
# What _detection_guarded sets while it looks for setups.
outer = getattr(install._SETUP_SEARCH, "active", False)
install._SETUP_SEARCH.active = True
self.addCleanup(setattr, install._SETUP_SEARCH, "active", outer)
with quiet, contextlib.redirect_stderr(io.StringIO()):
self.assertFalse(install._exists(target))
self.assertFalse(install._exists(base / "absent"))
self.assertEqual(install.closed_folder(target), (closed, "Permission denied"))