From ce31462bd308e0fd5e5feb543745396220667656 Mon Sep 17 00:00:00 2001 From: "Gregory P. Smith" Date: Mon, 4 Dec 2023 12:45:12 -0800 Subject: [PATCH] Fix the refactored test to not override parameters. Based on Serhiy's code review. (thanks!) Confirmed it still passes as root and non-root on Linux. --- Lib/test/test_subprocess.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index d61ceb70f69d8e..319bc0d2638563 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -2073,8 +2073,6 @@ def test_extra_groups_empty_list(self): self._test_extra_groups_impl(gid=os.getegid(), group_list=[]) def _test_extra_groups_impl(self, *, gid, group_list): - gid = os.getegid() - group_list = [65534 if gid != 65534 else 65533] name_group = _get_test_grp_name() if grp is not None: