diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2013-02-21 14:34:36 +0200 |
---|---|---|
committer | Serhiy Storchaka <storchaka@gmail.com> | 2013-02-21 14:34:36 +0200 |
commit | 8b9ea2547784c755bd183e6965d9ccf96990c73c (patch) | |
tree | 7e44cc0dcfc58ad26a0d2ad88f6c7104192923da /Lib | |
parent | dd984800c95b4b03331211432d50d5562f326df9 (diff) | |
download | cpython-8b9ea2547784c755bd183e6965d9ccf96990c73c.tar.gz |
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 5a26d649d3..865209d7c9 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 |