This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author tweksteen
Recipients chris.jerdonek, pitrou, tweksteen
Date 2012-07-27.03:57:30
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1343361450.64.0.650401217197.issue15464@psf.upfronthosting.co.za>
In-reply-to
Content
I'm not sure what would be the best way to verify that. 
What about:

    def test_connect_with_msg_callback(self):
        with support.transient_internet("svn.python.org"):
            self.called = False
            def cb(packet):
                self.assertGreater(len(packet), 0)
                self.called = True
            ctx = ssl.SSLContext(ssl.PROTOCOL_SSLv23)
            ctx.set_msg_callback(cb)
            s = ctx.wrap_socket(socket.socket(socket.AF_INET))
            try:
                s.connect(("svn.python.org", 443))
                self.assertTrue(self.called)
            finally:
                s.close()
History
Date User Action Args
2012-07-27 03:57:30tweksteensetrecipients: + tweksteen, pitrou, chris.jerdonek
2012-07-27 03:57:30tweksteensetmessageid: <1343361450.64.0.650401217197.issue15464@psf.upfronthosting.co.za>
2012-07-27 03:57:30tweksteenlinkissue15464 messages
2012-07-27 03:57:30tweksteencreate