summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorCharles-François Natali <neologix@free.fr>2012-05-02 18:49:14 (GMT)
committerCharles-François Natali <neologix@free.fr>2012-05-02 18:49:14 (GMT)
commit39687ee9db2303cabdf1b349ffaa60df1c01ba9d (patch)
treef2795271a1cd2d309c963f4e624e8d4e246f515f /Lib
parente8a255a5a28f3d0cecf2bcd411ac959937cde40d (diff)
downloadcpython-39687ee9db2303cabdf1b349ffaa60df1c01ba9d.zip
cpython-39687ee9db2303cabdf1b349ffaa60df1c01ba9d.tar.gz
cpython-39687ee9db2303cabdf1b349ffaa60df1c01ba9d.tar.bz2
os.popen().close() returns None on success, not 0...
Diffstat (limited to 'Lib')
-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 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