cpython: 0f7383e6ced7 (original) (raw)
Mercurial > cpython
changeset 82297:0f7383e6ced7 3.2
Issue #17248: Fix os.*chown() testing when user is in root group. [#17248]
Serhiy Storchaka storchaka@gmail.com | |
---|---|
date | Thu, 21 Feb 2013 14:34:36 +0200 |
parents | 1b9de5788698 |
children | a4e348c4b5d3 36220cf535aa |
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 @@ -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:[](#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)