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

Sporadic failure in test_httpservers #55826

Closed
pitrou opened this issue Mar 20, 2011 · 6 comments
Closed

Sporadic failure in test_httpservers #55826

pitrou opened this issue Mar 20, 2011 · 6 comments
Assignees
Labels
stdlib Python modules in the Lib dir tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error

Comments

@pitrou
Copy link
Member

pitrou commented Mar 20, 2011

BPO 11617
Nosy @orsenthil, @pitrou, @vstinner
PRs
  • [2.7] bpo-11617: Try to strengthen test_httpservers #11121
  • 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 = 'https://github.com/orsenthil'
    closed_at = <Date 2018-12-11.16:08:36.507>
    created_at = <Date 2011-03-20.17:06:21.354>
    labels = ['tests', 'type-bug', 'library']
    title = 'Sporadic failure in test_httpservers'
    updated_at = <Date 2018-12-11.16:08:47.375>
    user = 'https://github.com/pitrou'

    bugs.python.org fields:

    activity = <Date 2018-12-11.16:08:47.375>
    actor = 'vstinner'
    assignee = 'orsenthil'
    closed = True
    closed_date = <Date 2018-12-11.16:08:36.507>
    closer = 'vstinner'
    components = ['Library (Lib)', 'Tests']
    creation = <Date 2011-03-20.17:06:21.354>
    creator = 'pitrou'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 11617
    keywords = ['patch']
    message_count = 6.0
    messages = ['131514', '131564', '131568', '135915', '331634', '331636']
    nosy_count = 4.0
    nosy_names = ['orsenthil', 'pitrou', 'vstinner', 'python-dev']
    pr_nums = ['11121']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue11617'
    versions = ['Python 2.7', 'Python 3.2', 'Python 3.3']

    @pitrou
    Copy link
    Member Author

    pitrou commented Mar 20, 2011

    http://www.python.org/dev/buildbot/all/builders/x86%20OpenIndiana%203.2/builds/101/steps/test/logs/stdio

    test test_httpservers failed -- Traceback (most recent call last):
      File "/export/home/buildbot/32bits/3.2.cea-indiana-x86/build/Lib/test/test_httpservers.py", line 136, in test_version_digits
        res = self.con.getresponse()
      File "/export/home/buildbot/32bits/3.2.cea-indiana-x86/build/Lib/http/client.py", line 1046, in getresponse
        response.begin()
      File "/export/home/buildbot/32bits/3.2.cea-indiana-x86/build/Lib/http/client.py", line 346, in begin
        version, status, reason = self._read_status()
      File "/export/home/buildbot/32bits/3.2.cea-indiana-x86/build/Lib/http/client.py", line 328, in _read_status
        raise BadStatusLine(line)
    http.client.BadStatusLine: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"

    @pitrou pitrou added stdlib Python modules in the Lib dir tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error labels Mar 20, 2011
    @vstinner
    Copy link
    Member

    Another example on x86 OpenIndiana 3.2:

    test test_httpservers failed -- Traceback (most recent call last):
      File "/export/home/buildbot/32bits/3.2.cea-indiana-x86/build/Lib/test/test_httpservers.py", line 210, in test_latin1_header
        self.assertEqual(res.getheader('X-Special'), 'D\xe4ngerous Mind')
    AssertionError: None != 'D\xe4ngerous Mind'

    @python-dev
    Copy link
    Mannequin

    python-dev mannequin commented Mar 20, 2011

    New changeset fa20590d4694 by Antoine Pitrou in branch '3.2':
    Try to strengthen test_httpservers (issue bpo-11617)
    http://hg.python.org/cpython/rev/fa20590d4694

    New changeset 34db881edb4d by Antoine Pitrou in branch 'default':
    Try to strengthen test_httpservers (issue bpo-11617)
    http://hg.python.org/cpython/rev/34db881edb4d

    @vstinner
    Copy link
    Member

    The issue looks to be fixed. Reopen if there are new failures.

    @vstinner
    Copy link
    Member

    Hum, it seems like this bug still exists in Python 2.7. Error from Fedora CI:

    test_head_via_send_error (test.test_httpservers.BaseHTTPServerTestCase) ... ERROR
    (...)
    ERROR: test_head_via_send_error (test.test_httpservers.BaseHTTPServerTestCase)
    ----------------------------------------------------------------------

    Traceback (most recent call last):
      File "/builddir/build/BUILD/Python-2.7.15/Lib/test/test_httpservers.py", line 303, in test_head_via_send_error
        res = self.con.getresponse()
      File "/builddir/build/BUILD/Python-2.7.15/Lib/httplib.py", line 1121, in getresponse
        response.begin()
      File "/builddir/build/BUILD/Python-2.7.15/Lib/httplib.py", line 438, in begin
        version, status, reason = self._read_status()
      File "/builddir/build/BUILD/Python-2.7.15/Lib/httplib.py", line 402, in _read_status
        raise BadStatusLine(line)
    BadStatusLine: ''

    @vstinner vstinner reopened this Dec 11, 2018
    @vstinner
    Copy link
    Member

    New changeset d336b1c by Victor Stinner in branch '2.7':
    bpo-11617: Try to strengthen test_httpservers (GH-11121)
    d336b1c

    @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
    stdlib Python modules in the Lib dir tests Tests in the Lib/test dir type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    3 participants