From: Giampaolo RodolĂ  Date: Wed, 26 May 2010 18:21:26 +0000 (+0000) Subject: fix wrong assertIs context X-Git-Tag: v3.2a1~687 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6da11e5fce42f7e79c93b5e523d1be03bdc7182e;p=python fix wrong assertIs context --- diff --git a/Lib/test/test_ftplib.py b/Lib/test/test_ftplib.py index 9dc06cd745..c8d0d88e74 100644 --- a/Lib/test/test_ftplib.py +++ b/Lib/test/test_ftplib.py @@ -738,7 +738,7 @@ class TestTLS_FTPClass(TestCase): self.client.prot_p() sock = self.client.transfercmd('list') - self.assertIs(self.client.sock.context, ctx) + self.assertIs(sock.context, ctx) self.assertIsInstance(sock, ssl.SSLSocket) sock.close()