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_ftplib.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_ftplib.py')
-rw-r--r-- | Lib/test/test_ftplib.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_ftplib.py b/Lib/test/test_ftplib.py index 7028f46..299a146 100644 --- a/Lib/test/test_ftplib.py +++ b/Lib/test/test_ftplib.py @@ -342,7 +342,7 @@ if ssl is not None: # http://www.mail-archive.com/openssl-users@openssl.org/msg60710.html pass self._ssl_closing = False - if getattr(self, '_ccc', False) == False: + if getattr(self, '_ccc', False) is False: super(SSLConnection, self).close() else: pass |