Skip to content

Test suite leaks many objects #1669

@pitrou

Description

@pitrou

At the end of the test suite (I'm running distributed/tests):

>>> l = [x for x in gc.get_objects() if isinstance(x, (distributed.Scheduler, distributed.Client, distributed.Worker, distributed.Nanny))]
>>> len(l)
479
>>> pprint.pprint(collections.Counter(type(x) for x in l))
Counter({<class 'distributed.scheduler.Scheduler'>: 447,
         <class 'distributed.worker.Worker'>: 19,
         <class 'distributed.client.Client'>: 9,
         <class 'distributed.nanny.Nanny'>: 4})

So the test suite is really leaking a ton of Scheduler instances...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions