cpython: d49685548a7a (original) (raw)
Mercurial > cpython
changeset 82299:d49685548a7a
Issue #17248: Fix os.*chown() testing when user is in root group. [#17248]
Serhiy Storchaka storchaka@gmail.com | |
---|---|
date | Thu, 21 Feb 2013 14:35:51 +0200 |
parents | a11ddd687a0b(current diff)a4e348c4b5d3(diff) |
children | 69f793cc34fc |
files | Lib/test/test_posix.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-)[+] [-] Lib/test/test_posix.py 2 |
line wrap: on
line diff
--- 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:[](#l1.7)
if 0 not in os.getgroups():[](#l1.8) self.assertRaises(OSError, chown_func, first_param, -1, 0)[](#l1.9) check_stat(uid, gid)[](#l1.10) # test illegal types[](#l1.11)