]> granicus.if.org Git - python/commitdiff
fix wrong assertIs context
authorGiampaolo Rodolà <g.rodola@gmail.com>
Wed, 26 May 2010 18:21:26 +0000 (18:21 +0000)
committerGiampaolo Rodolà <g.rodola@gmail.com>
Wed, 26 May 2010 18:21:26 +0000 (18:21 +0000)
Lib/test/test_ftplib.py

index 9dc06cd7451952b094fa4fafdb4cdab69896705f..c8d0d88e74e522e981e07bf96503595f2ef2109d 100644 (file)
@@ -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()