os.popen().close() returns None on success, not 0...
This commit is contained in:
parent
e8a255a5a2
commit
39687ee9db
|
@ -427,7 +427,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
|
||||
|
|
Loading…
Reference in New Issue