Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bpo-38163: Child mocks detect their type as sync or async (GH-16471)
Backports: 3667e1ee6c90e6d3b6a745cd590ece87118f81ad Signed-off-by: Chris Withers <chris@withers.org>
- Loading branch information
Showing
3 changed files
with
49 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Child mocks will now detect their type as either synchronous or | ||
asynchronous, asynchronous child mocks will be AsyncMocks and synchronous | ||
child mocks will be either MagicMock or Mock (depending on their parent | ||
type). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters