diff options
author | Benjamin Peterson <benjamin@python.org> | 2012-10-09 15:16:03 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2012-10-09 15:16:03 (GMT) |
commit | b29614e047110f4d9af993a6cdec4e3fb7ef9738 (patch) | |
tree | a15a5ac7b508c5033f640123f498a322f44b04ce /Lib/test/test_posix.py | |
parent | a5119351519926971240f61d0c23a5fc5d00743e (diff) | |
download | cpython-b29614e047110f4d9af993a6cdec4e3fb7ef9738.zip cpython-b29614e047110f4d9af993a6cdec4e3fb7ef9738.tar.gz cpython-b29614e047110f4d9af993a6cdec4e3fb7ef9738.tar.bz2 |
compare singletons by identity not equality (closes #16712)
Patch from Serhiy Storchaka.
Diffstat (limited to 'Lib/test/test_posix.py')
-rw-r--r-- | Lib/test/test_posix.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py index 4e7a37c..f59607b 100644 --- a/Lib/test/test_posix.py +++ b/Lib/test/test_posix.py @@ -651,7 +651,7 @@ class PosixTester(unittest.TestCase): groups = idg.read().strip() ret = idg.close() - if ret != None or not groups: + if ret is not None or not groups: raise unittest.SkipTest("need working 'id -G'") self.assertEqual( @@ -665,7 +665,7 @@ class PosixTester(unittest.TestCase): groups = idg.read().strip() ret = idg.close() - if ret != None or not groups: + if ret is not None or not groups: raise unittest.SkipTest("need working 'id -G'") # 'id -G' and 'os.getgroups()' should return the same |