Commits

Charles-François Natali  committed 67b19fe

os.popen().close() returns None on success, not 0...

  • Participants
  • Parent commits 45f0272
  • Branches 2.7

Comments (0)

Files changed (1)

File Lib/test/test_posix.py

             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