Issue 17107: test_sni in test_urllib2net could be enabled (original) (raw)

Created on 2013-02-02 22:15 by pitrou, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
https_sni_test.patch grooverdan,2013-02-03 21:19 test case as requested review
Messages (5)
msg181222 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2013-02-02 22:15
Right now test_sni in test_urllib2net is skipped with the message "test disabled - test server needed". But the ssl module now has server-side SNI support, and therefore we could implement this test with a local server (and perhaps move it to test_urllib2_localnet).
msg181300 - (view) Author: Daniel Black (grooverdan) * Date: 2013-02-03 21:19
ask and you shall receive :-)
msg181375 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2013-02-04 19:06
Thanks for the patch :) Since the test doesn't access a remote host (the version before it was skipped used to), I think it could be moved to test_urllib2_localnet. Also, the transient_internet() shouldn't be necessary.
msg181477 - (view) Author: Roundup Robot (python-dev) (Python triager) Date: 2013-02-05 20:24
New changeset f74a12e23aaa by Antoine Pitrou in branch 'default': Issue #17107: Test client-side SNI support in urllib.request thanks to the new server-side SNI support in the ssl module. http://hg.python.org/cpython/rev/f74a12e23aaa
msg181478 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2013-02-05 20:26
Ok, I've tweaked the patch a bit and committed it. Thank you!
History
Date User Action Args
2022-04-11 14:57:41 admin set github: 61309
2013-02-05 20:26:28 pitrou set status: open -> closedversions: - Python 3.5messages: + resolution: fixedstage: needs patch -> resolved
2013-02-05 20:24:57 python-dev set nosy: + python-devmessages: +
2013-02-04 19:06:43 pitrou set messages: +
2013-02-03 21:19:28 grooverdan set files: + https_sni_test.patchversions: + Python 3.5nosy: + grooverdanmessages: + keywords: + patch
2013-02-02 22:15:52 pitrou create