From dee8dadf31a222ff0bd124e630ea88fd9070f9cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Charles-Fran=C3=A7ois=20Natali?= Date: Wed, 2 May 2012 20:48:21 +0200 Subject: [PATCH] os.popen().close() returns None on success, not 0... --- Lib/test/test_posix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py index 06f3fdd9920..755a81c3506 100644 --- a/Lib/test/test_posix.py +++ b/Lib/test/test_posix.py @@ -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