Skip to content

Small typo in https://docs.python.org/3/library/unittest.mock.html#where-to-patch #130106

Closed
@cmarqu

Description

@cmarqu

https://docs.python.org/3/library/unittest.mock.html#where-to-patch has the text "which we will have to do then it imports" which should be "which we will have to do when it imports" (i.e. s/then/when/).

The source for this is

:func:`patch`. The problem is that when we import module b, which we will have to
do then it imports ``SomeClass`` from module a. If we use :func:`patch` to mock out

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    docsDocumentation in the Doc dir

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions