Skip to content

http://www.python.org used in unit test is directed to HTTPS url #65181

Closed

Description

@vstinner
BPO 20982
Nosy @vstinner
Superseder
  • bpo-20939: test_geturl of test_urllibnet fails with 'https://www.python.org/' != 'http://www.python.org/'
  • 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 2014-03-19.17:42:19.001>
    created_at = <Date 2014-03-19.16:53:46.255>
    labels = []
    title = 'http://www.python.org used in unit test is directed to HTTPS url'
    updated_at = <Date 2014-03-19.17:42:19.000>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2014-03-19.17:42:19.000>
    actor = 'ned.deily'
    assignee = 'none'
    closed = True
    closed_date = <Date 2014-03-19.17:42:19.001>
    closer = 'ned.deily'
    components = []
    creation = <Date 2014-03-19.16:53:46.255>
    creator = 'vstinner'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 20982
    keywords = []
    message_count = 1.0
    messages = ['214112']
    nosy_count = 1.0
    nosy_names = ['vstinner']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '20939'
    type = None
    url = 'https://bugs.python.org/issue20982'
    versions = ['Python 2.7', 'Python 3.4', 'Python 3.5']

    Activity

    1. vstinner commented on Mar 19, 2014

      @vstinner
      MemberAuthor

      Many Python unit tests use http://www.python.org/ but the URL is directed to https://www.python.org/. Tests fail if the ssl module is missing.

      I modified test_urllib2.test_issue16464() but then I realized that many more tests are impacted: many tests of test_urllibnet.
      ---
      changeset: 89857:ad0c75b7bd7d
      tag: tip
      parent: 89855:9120196b3114
      parent: 89856:68335b8afb1f
      user: Victor Stinner <victor.stinner@gmail.com>
      date: Wed Mar 19 17:34:12 2014 +0100
      description:
      (Merge 3.4) Skip test_urllib2.test_issue16464() is the ssl module is missing

      changeset: 89856:68335b8afb1f
      branch: 3.4
      parent: 89852:c44258b4b7a4
      user: Victor Stinner <victor.stinner@gmail.com>
      date: Wed Mar 19 17:31:20 2014 +0100
      files: Lib/test/test_urllib2.py
      description:
      Skip test_urllib2.test_issue16464() is the ssl module is missing
      ---

      Should we modify all unit tests to skip them if ssl is missing, or should we use another HTTP URL?

    2. transferred this issue fromon Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Metadata

    Metadata

    Assignees

    No one assigned

      Labels

      No labels
      No labels

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions