diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-02-21 12:34:59 (GMT) |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-02-21 12:34:59 (GMT) |
commit | 9d202ba25287fca890d051abda575bf74d9cda5f (patch) | |
tree | 058fe2cb77f58a2dbca079d983d4c4f0d0109f12 /Lib | |
parent | 4d6795e1a2655c70494ba892072cedc002ccce9a (diff) | |
parent | a2964b3175b8faba0285ccfbd269411a4893444d (diff) | |
download | cpython-9d202ba25287fca890d051abda575bf74d9cda5f.zip cpython-9d202ba25287fca890d051abda575bf74d9cda5f.tar.gz cpython-9d202ba25287fca890d051abda575bf74d9cda5f.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 8432428..4d9e1f5 100644 --- a/Lib/test/test_posix.py +++ b/Lib/test/test_posix.py @@ -453,7 +453,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 |