os.popen().close() returns None on success, not 0...

This commit is contained in:
Charles-François Natali 2012-05-02 20:48:21 +02:00
parent 666a573fa6
commit dee8dadf31
1 changed files with 1 additions and 1 deletions

View File

@ -424,7 +424,7 @@ class PosixTester(unittest.TestCase):
groups = idg.read().strip()
ret = idg.close()
if ret != 0 or not groups:
if ret != None or not groups:
raise unittest.SkipTest("need working 'id -G'")
# 'id -G' and 'os.getgroups()' should return the same