projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5bdb1f
)
Issue #17248: Fix os.*chown() testing when user is in root group.
author
Serhiy Storchaka
<storchaka@gmail.com>
Thu, 21 Feb 2013 12:33:45 +0000
(14:33 +0200)
committer
Serhiy Storchaka
<storchaka@gmail.com>
Thu, 21 Feb 2013 12:33:45 +0000
(14:33 +0200)
Lib/test/test_posix.py
patch
|
blob
|
history
diff --git
a/Lib/test/test_posix.py
b/Lib/test/test_posix.py
index 073e069ee8d1e4a9613c34d8705b68d760da1fa5..b0a8cdf564d5d124839953c3ec61f7a7a4488ac8 100644
(file)
--- a/
Lib/test/test_posix.py
+++ b/
Lib/test/test_posix.py
@@
-271,7
+271,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