Skip to content

test_multiprocessing seems fragile #47359

Closed

Description

@pitrou
BPO 3109
Nosy @pitrou

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 2008-08-18.19:43:07.707>
created_at = <Date 2008-06-14.00:07:53.711>
labels = ['tests', 'library']
title = 'test_multiprocessing seems fragile'
updated_at = <Date 2008-08-18.19:43:07.706>
user = 'https://github.com/pitrou'

bugs.python.org fields:

activity = <Date 2008-08-18.19:43:07.706>
actor = 'jnoller'
assignee = 'jnoller'
closed = True
closed_date = <Date 2008-08-18.19:43:07.707>
closer = 'jnoller'
components = ['Library (Lib)', 'Tests']
creation = <Date 2008-06-14.00:07:53.711>
creator = 'pitrou'
dependencies = []
files = []
hgrepos = []
issue_num = 3109
keywords = []
message_count = 6.0
messages = ['68194', '68219', '68220', '68238', '68243', '71369']
nosy_count = 3.0
nosy_names = ['pitrou', 'roudkerk', 'jnoller']
pr_nums = []
priority = 'normal'
resolution = 'duplicate'
stage = None
status = 'closed'
superseder = None
type = None
url = 'https://bugs.python.org/issue3109'
versions = ['Python 3.0']

Activity

  1. pitrou commented on Jun 14, 2008

    @pitrou
    MemberAuthor

    I had the following intermittent failure under py3k:

    [...]
    test_multiprocessing
    Process Process-24:
    Traceback (most recent call last):
      File "/home/antoine/py3k/context/Lib/multiprocessing/process.py", line
    237, in _bootstrap
        self.run()
      File "/home/antoine/py3k/context/Lib/multiprocessing/process.py", line
    93, in run
        self._target(*self._args, **self._kwargs)
      File "/home/antoine/py3k/context/Lib/test/test_multiprocessing.py",
    line 1390, in _remote
        client.connect(address)
    socket.error: [Errno 111] Connection refused
  2. added
    stdlib
    tests
    on Jun 14, 2008
  3. self-assigned this
    on Jun 14, 2008
  4. pitrou commented on Jun 14, 2008

    @pitrou
    MemberAuthor

    Apparently the error can happen in test_pickling:

    test_pickling (__main__.WithProcessesTestPicklingConnections) ...
    Process Process-24:
    Traceback (most recent call last):
      File "/home/antoine/py3k/traceback/Lib/multiprocessing/process.py",
    line 237, in _bootstrap
        self.run()
      File "/home/antoine/py3k/traceback/Lib/multiprocessing/process.py",
    line 93, in run
        self._target(*self._args, **self._kwargs)
      File "Lib/test/test_multiprocessing.py", line 1390, in _remote
        client.connect(address)
    socket.error: [Errno 111] Connection refused
  5. pitrou commented on Jun 14, 2008

    @pitrou
    MemberAuthor

    Oh, in another regrtest run, test_multiprocessing just hanged without
    eating any CPU, this is what it printed after I pressed Ctrl-C:

    test_multiprocessing
    Process PoolWorker-5:4:
    Traceback (most recent call last):
      File "/home/antoine/py3k/traceback/Lib/multiprocessing/process.py",
    line 237, in _bootstrap
    Process PoolWorker-5:3:
    Traceback (most recent call last):
      File "/home/antoine/py3k/traceback/Lib/multiprocessing/process.py",
    line 237, in _bootstrap
    Process PoolWorker-5:2:
    Traceback (most recent call last):
      File "/home/antoine/py3k/traceback/Lib/multiprocessing/process.py",
    line 237, in _bootstrap
    Process PoolWorker-5:1:
    Traceback (most recent call last):
      File "/home/antoine/py3k/traceback/Lib/multiprocessing/process.py",
    line 237, in _bootstrap
  6. jnoller commented on Jun 15, 2008

    jnollermannequin
    Mannequin

    See: http://bugs.python.org/msg68237

    For Beta 1 I am proposing a reduced test suite to remove the more
    unreliable tests.

  7. pitrou commented on Jun 15, 2008

    @pitrou
    MemberAuthor

    Le dimanche 15 juin 2008 à 15:21 +0000, Jesse Noller a écrit :

    For Beta 1 I am proposing a reduced test suite to remove the more
    unreliable tests.

    This would be nice (especially the tests which make regrtest hang).
    I also suggest the offending tests be commented out rather than
    completely removed, so that we remember they were here :-)

  8. jnoller commented on Aug 18, 2008

    jnollermannequin
    Mannequin

    the "socket.error: [Errno 111] Connection refused" is fixed/resolved with
    the fix for bpo-3270

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

    stdlibtests

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions