summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_posix.py
diff options
context:
space:
mode:
authorCharles-François Natali <neologix@free.fr>2012-05-02 18:50:13 (GMT)
committerCharles-François Natali <neologix@free.fr>2012-05-02 18:50:13 (GMT)
commit360b3c21f5df26569be8b6431c859416d0f8f333 (patch)
treeb865c6e0f977f0e945c18c4fcd568b68b6eccd8c /Lib/test/test_posix.py
parentd59240de8311a493ead948f382cc07e0d70fb1c1 (diff)
parent39687ee9db2303cabdf1b349ffaa60df1c01ba9d (diff)
downloadcpython-360b3c21f5df26569be8b6431c859416d0f8f333.zip
cpython-360b3c21f5df26569be8b6431c859416d0f8f333.tar.gz
cpython-360b3c21f5df26569be8b6431c859416d0f8f333.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.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py
index 5ed2a0f..21473fc 100644
--- a/Lib/test/test_posix.py
+++ b/Lib/test/test_posix.py
@@ -630,7 +630,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'")
self.assertEqual(
@@ -644,7 +644,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