From: Charles-François Natali Date: Wed, 2 May 2012 18:49:14 +0000 (+0200) Subject: os.popen().close() returns None on success, not 0... X-Git-Tag: v3.3.0a4~312^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=39687ee9db2303cabdf1b349ffaa60df1c01ba9d;p=thirdparty%2FPython%2Fcpython.git os.popen().close() returns None on success, not 0... --- diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py index 26b8d81a6436..c04c67921052 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