Skip to content

Commit 8a21b85

Browse files
authored
Bump mock to 5.2.* (#13581)
1 parent 58a4c08 commit 8a21b85

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

stubs/mock/METADATA.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
version = "5.1.*"
1+
version = "5.2.*"
22
upstream_repository = "https://github.com/testing-cabal/mock"

stubs/mock/mock/backports.pyi

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,7 @@
1-
from asyncio import iscoroutinefunction as iscoroutinefunction
1+
import sys
22
from unittest import IsolatedAsyncioTestCase as IsolatedAsyncioTestCase
3+
4+
if sys.version_info >= (3, 10):
5+
from inspect import iscoroutinefunction as iscoroutinefunction
6+
else:
7+
from asyncio import iscoroutinefunction as iscoroutinefunction

stubs/mock/mock/mock.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class NonCallableMock(Base, Any):
117117
**kwargs: Any,
118118
) -> None: ...
119119
def __getattr__(self, name: str) -> Any: ...
120-
def _calls_repr(self, prefix: str = "Calls") -> str: ...
120+
def _calls_repr(self) -> str: ...
121121
def assert_called_with(_mock_self, *args: Any, **kwargs: Any) -> None: ...
122122
def assert_not_called(_mock_self) -> None: ...
123123
def assert_called_once_with(_mock_self, *args: Any, **kwargs: Any) -> None: ...

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy