Skip to content

Sporadic failure in test_httpservers #55826

Closed

Description

@pitrou
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']

    Activity

    1. pitrou commented on Mar 20, 2011

      @pitrou
      MemberAuthor

      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"
    2. added
      stdlib
      tests
      type-bug
      on Mar 20, 2011
    3. vstinner commented on Mar 20, 2011

      @vstinner
      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'
    4. python-dev commented on Mar 20, 2011

      python-devmannequin
      Mannequin

      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

    5. vstinner commented on May 13, 2011

      @vstinner
      Member

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

    6. vstinner commented on Dec 11, 2018

      @vstinner
      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: ''
    7. vstinner commented on Dec 11, 2018

      @vstinner
      Member

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

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

    Labels

    stdlibteststype-bug

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions