Skip to content

Commit 0a57369

Browse files
committed
[GR-49675] Re-enable chown gid test on Darwin
1 parent 9f6d154 commit 0a57369

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

graalpython/lib-python/3/test/test_os.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1859,9 +1859,9 @@ def test_chown_uid_gid_arguments_must_be_index(self):
18591859
self.assertIsNone(os.chown(os_helper.TESTFN, -1, -1))
18601860

18611861
@unittest.skipUnless(hasattr(os, 'getgroups'), 'need os.getgroups')
1862-
@unittest.skipIf(sys.platform == 'darwin', 'transiently fails on darwin: GR-49675')
18631862
def test_chown_gid(self):
1864-
groups = os.getgroups()
1863+
# Exclude the all-ones gid, which chown treats as "do not change group".
1864+
groups = [gid for gid in os.getgroups() if gid != (1 << 32) - 1]
18651865
if len(groups) < 2:
18661866
self.skipTest("test needs at least 2 groups")
18671867

0 commit comments

Comments
 (0)