diff options
author | Charles-François Natali <neologix@free.fr> | 2012-05-02 18:49:14 (GMT) |
---|---|---|
committer | Charles-François Natali <neologix@free.fr> | 2012-05-02 18:49:14 (GMT) |
commit | 39687ee9db2303cabdf1b349ffaa60df1c01ba9d (patch) | |
tree | f2795271a1cd2d309c963f4e624e8d4e246f515f /Lib/test/test_posix.py | |
parent | e8a255a5a28f3d0cecf2bcd411ac959937cde40d (diff) | |
download | cpython-39687ee9db2303cabdf1b349ffaa60df1c01ba9d.zip cpython-39687ee9db2303cabdf1b349ffaa60df1c01ba9d.tar.gz cpython-39687ee9db2303cabdf1b349ffaa60df1c01ba9d.tar.bz2 |
os.popen().close() returns None on success, not 0...
Diffstat (limited to 'Lib/test/test_posix.py')
-rw-r--r-- | Lib/test/test_posix.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py index 26b8d81..c04c679 100644 --- a/Lib/test/test_posix.py +++ b/Lib/test/test_posix.py @@ -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 |