Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_sni in test_urllib2net could be enabled #61309

Closed
pitrou opened this issue Feb 2, 2013 · 5 comments
Closed

test_sni in test_urllib2net could be enabled #61309

pitrou opened this issue Feb 2, 2013 · 5 comments
Labels
tests Tests in the Lib/test dir type-feature A feature request or enhancement

Comments

@pitrou
Copy link
Member

pitrou commented Feb 2, 2013

BPO 17107
Nosy @pitrou
Files
  • https_sni_test.patch: test case as requested
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2013-02-05.20:26:28.596>
    created_at = <Date 2013-02-02.22:15:52.156>
    labels = ['type-feature', 'tests']
    title = 'test_sni in test_urllib2net could be enabled'
    updated_at = <Date 2013-02-05.20:26:28.594>
    user = 'https://github.com/pitrou'

    bugs.python.org fields:

    activity = <Date 2013-02-05.20:26:28.594>
    actor = 'pitrou'
    assignee = 'none'
    closed = True
    closed_date = <Date 2013-02-05.20:26:28.596>
    closer = 'pitrou'
    components = ['Tests']
    creation = <Date 2013-02-02.22:15:52.156>
    creator = 'pitrou'
    dependencies = []
    files = ['28948']
    hgrepos = []
    issue_num = 17107
    keywords = ['patch']
    message_count = 5.0
    messages = ['181222', '181300', '181375', '181477', '181478']
    nosy_count = 3.0
    nosy_names = ['pitrou', 'grooverdan', 'python-dev']
    pr_nums = []
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue17107'
    versions = ['Python 3.4']

    @pitrou
    Copy link
    Member Author

    pitrou commented Feb 2, 2013

    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).

    @pitrou pitrou added tests Tests in the Lib/test dir type-feature A feature request or enhancement labels Feb 2, 2013
    @grooverdan
    Copy link
    Mannequin

    grooverdan mannequin commented Feb 3, 2013

    ask and you shall receive :-)

    @pitrou
    Copy link
    Member Author

    pitrou commented Feb 4, 2013

    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.

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Feb 5, 2013

    New changeset f74a12e23aaa by Antoine Pitrou in branch 'default':
    Issue bpo-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

    @pitrou
    Copy link
    Member Author

    pitrou commented Feb 5, 2013

    Ok, I've tweaked the patch a bit and committed it. Thank you!

    @pitrou pitrou closed this as completed Feb 5, 2013
    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    tests Tests in the Lib/test dir type-feature A feature request or enhancement
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant