[release/v7.6] Fix $PSDefaultParameterValues leak causing tests to skip unexpectedly by daxian-dbw · Pull Request #26705 · PowerShell/PowerShell

@daxian-dbw

…PowerShell#26602)

This fixes test isolation issues where six test files were leaking $PSDefaultParameterValues["It:Skip"] settings to subsequent tests, causing widespread test skipping on Linux. The fixes address two distinct patterns: using .Remove() which doesn't restore the original state (4 files), and imbalanced Push-DefaultParameterValueStack/Pop-DefaultParameterValueStack calls (2 files).

AI review requested due to automatic review settings

January 20, 2026 22:23

@daxian-dbw daxian-dbw added the CL-Test

Indicates that a PR should be marked as a test change in the Change Log

label

Jan 20, 2026

jshigetomi

@daxian-dbw daxian-dbw deleted the backport/release/v7.6/26602-2e7765eef branch

January 21, 2026 19:52