Skip to content

Does not work with pytest-xdist #94

Description

@iurisilvio

Running with xdist, each worker and the controller execute the same code.

In the case of the controller, cache._flake8mtimes is never filled. Each worker generate a cache for part of the collected files.

At the end of execution, each worker write their data to the same cache (overwriting previous writes) and, after that, the controller write to cache an empty cache.

config.cache.set(HISTKEY, config._flake8mtimes)

Activity

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

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions