Skip to content

Make mock only optional dependency #3965

@mcepl

Description

@mcepl

When packaging pytest in Linux distributions (and I guess it matters for other packaging systems as well, e.g., MacPorts or Homebrew), especially for packages which are deep in the tree of dependencies, it is useful to remove all unnecessary dependencies. That's a case of mock, which is since Python 3.3 available in the standard library as unittest.mock.

This patch makes the mock only optional dependency of pytest.

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: help wanteddevelopers would like help from experts on this topic

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions