diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-02-21 14:35:51 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-02-21 14:35:51 +0200 |
commit | fc9bf110a21cd62ffebf36df743777e6d6097cb6 (patch) | |
tree | b86ac7379c16449c504a3ec87d8e35156abfb61f /Lib/test/test_posix.py | |
parent | 542b7d1f156eefbf11d76f6e428d00f6dc0940a3 (diff) | |
parent | 9d202ba25287fca890d051abda575bf74d9cda5f (diff) | |
download | cpython-git-fc9bf110a21cd62ffebf36df743777e6d6097cb6.tar.gz |
Issue #17248: Fix os.*chown() testing when user is in root group.
Diffstat (limited to 'Lib/test/test_posix.py')
-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 840f5f67d0..4856083dc8 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 |