diff options
| author | Charles-François Natali <neologix@free.fr> | 2012-05-02 18:48:21 (GMT) |
|---|---|---|
| committer | Charles-François Natali <neologix@free.fr> | 2012-05-02 18:48:21 (GMT) |
| commit | dee8dadf31a222ff0bd124e630ea88fd9070f9cc (patch) | |
| tree | e22d44c9bd1040f0c9f1b4dc10b790fe504d72f0 /Lib/test | |
| parent | 666a573fa610afb5cf766d430f4f3bc5e602eed3 (diff) | |
| download | cpython-dee8dadf31a222ff0bd124e630ea88fd9070f9cc.zip cpython-dee8dadf31a222ff0bd124e630ea88fd9070f9cc.tar.gz cpython-dee8dadf31a222ff0bd124e630ea88fd9070f9cc.tar.bz2 | |
os.popen().close() returns None on success, not 0...
Diffstat (limited to 'Lib/test')
| -rw-r--r-- | 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 index 06f3fdd..755a81c 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 |
