summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_posix.py
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-03-02 00:14:48 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-03-02 00:14:48 (GMT)
commit24a945cc6b5ab24854e10fc519877099b38443c3 (patch)
tree69b64f4c7172e690a90df5e6d56723eab29f5203 /Lib/test/test_posix.py
parent3231bc01c5689bb4f24b7d8fd736971719833713 (diff)
parent659a6f562b0a6ed375b4708603a75150ed520694 (diff)
downloadcpython-24a945cc6b5ab24854e10fc519877099b38443c3.zip
cpython-24a945cc6b5ab24854e10fc519877099b38443c3.tar.gz
cpython-24a945cc6b5ab24854e10fc519877099b38443c3.tar.bz2
merge 3.3 (#20249)
Diffstat (limited to 'Lib/test/test_posix.py')
-rw-r--r--Lib/test/test_posix.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py
index 009f29d..9a5ee91 100644
--- a/Lib/test/test_posix.py
+++ b/Lib/test/test_posix.py
@@ -1161,7 +1161,7 @@ class PosixGroupsTester(unittest.TestCase):
def test_initgroups(self):
# find missing group
- g = max(self.saved_groups) + 1
+ g = max(self.saved_groups or [0]) + 1
name = pwd.getpwuid(posix.getuid()).pw_name
posix.initgroups(name, g)
self.assertIn(g, posix.getgroups())