diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-02-21 12:34:36 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-02-21 12:34:36 (GMT) |
commit | a2964b3175b8faba0285ccfbd269411a4893444d (patch) | |
tree | 089965bd8f9b7b773b5157a31b8c4fb452850fe1 /Lib | |
parent | bcbc5678d55b62c695479d2f57e0c31c81b8eca7 (diff) | |
download | cpython-a2964b3175b8faba0285ccfbd269411a4893444d.zip cpython-a2964b3175b8faba0285ccfbd269411a4893444d.tar.gz cpython-a2964b3175b8faba0285ccfbd269411a4893444d.tar.bz2 |
Issue #17248: Fix os.*chown() testing when user is in root group.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_posix.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py index 5a26d64..865209d 100644 --- a/Lib/test/test_posix.py +++ b/Lib/test/test_posix.py @@ -281,7 +281,7 @@ class PosixTester(unittest.TestCase): check_stat(uid, gid) self.assertRaises(OSError, chown_func, first_param, 0, -1) check_stat(uid, gid) - if gid != 0: + if 0 not in os.getgroups(): self.assertRaises(OSError, chown_func, first_param, -1, 0) check_stat(uid, gid) # test illegal types |