Skip to content

Tests fail if run in the wrong order #519

Description

@itamarst

Some tests end up buffering messages in the global, default BufferingDestionation.

Then, a later test does messages = []; add_destinations(messages.append) and now those messages from a completely different test ends up in messages.

pytest-random-order is good way to find these, install and then run pytest --random-order-bucket=package --pdb.

This is mostly an annoyance, means pytest-xdist fails at times.

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