[Python-checkins] cpython (2.7): os.popen().close() returns None on success, not 0...

charles-francois.natali python-checkins at python.org
Wed May 2 20:52:15 CEST 2012


http://hg.python.org/cpython/rev/67b19fe51a65
changeset: 76717:67b19fe51a65
branch: 2.7
parent: 76713:45f0272f5296
user: Charles-François Natali <neologix at free.fr>
date: Wed May 02 20:48:21 2012 +0200
summary:
 os.popen().close() returns None on success, not 0...
files:
 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
--- a/Lib/test/test_posix.py
+++ b/Lib/test/test_posix.py
@@ -424,7 +424,7 @@
 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
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /