summaryrefslogtreecommitdiffstats
path: root/contrib/python/pytest-mock/py3/pytest_mock
diff options
context:
space:
mode:
authorrobot-piglet <[email protected]>2025-06-10 07:58:52 +0300
committerrobot-piglet <[email protected]>2025-06-10 08:09:57 +0300
commit94c126df37bf4bb3865934508de384037935638b (patch)
tree8b2c60e867844547388f3266da370c9b8ea5e181 /contrib/python/pytest-mock/py3/pytest_mock
parent686b7126cb55601e05506a4a890e6f442703306b (diff)
Intermediate changes
commit_hash:1d18a3a019a737415b5508c62390d6373071cf9f
Diffstat (limited to 'contrib/python/pytest-mock/py3/pytest_mock')
-rw-r--r--contrib/python/pytest-mock/py3/pytest_mock/_version.py13
-rw-r--r--contrib/python/pytest-mock/py3/pytest_mock/plugin.py5
2 files changed, 11 insertions, 7 deletions
diff --git a/contrib/python/pytest-mock/py3/pytest_mock/_version.py b/contrib/python/pytest-mock/py3/pytest_mock/_version.py
index 431bd6d8195..7c4035f98f9 100644
--- a/contrib/python/pytest-mock/py3/pytest_mock/_version.py
+++ b/contrib/python/pytest-mock/py3/pytest_mock/_version.py
@@ -1,8 +1,13 @@
-# file generated by setuptools_scm
+# file generated by setuptools-scm
# don't change, don't track in version control
+
+__all__ = ["__version__", "__version_tuple__", "version", "version_tuple"]
+
TYPE_CHECKING = False
if TYPE_CHECKING:
- from typing import Tuple, Union
+ from typing import Tuple
+ from typing import Union
+
VERSION_TUPLE = Tuple[Union[int, str], ...]
else:
VERSION_TUPLE = object
@@ -12,5 +17,5 @@ __version__: str
__version_tuple__: VERSION_TUPLE
version_tuple: VERSION_TUPLE
-__version__ = version = '3.14.0'
-__version_tuple__ = version_tuple = (3, 14, 0)
+__version__ = version = '3.14.1'
+__version_tuple__ = version_tuple = (3, 14, 1)
diff --git a/contrib/python/pytest-mock/py3/pytest_mock/plugin.py b/contrib/python/pytest-mock/py3/pytest_mock/plugin.py
index 1e0a0b20255..50dc06ab7cc 100644
--- a/contrib/python/pytest-mock/py3/pytest_mock/plugin.py
+++ b/contrib/python/pytest-mock/py3/pytest_mock/plugin.py
@@ -1,4 +1,3 @@
-import asyncio
import builtins
import functools
import inspect
@@ -196,7 +195,7 @@ class MockerFixture:
spy_obj.spy_return_list.append(r)
return r
- if asyncio.iscoroutinefunction(method):
+ if inspect.iscoroutinefunction(method):
wrapped = functools.update_wrapper(async_wrapper, method)
else:
wrapped = functools.update_wrapper(wrapper, method)
@@ -265,7 +264,7 @@ class MockerFixture:
"Mocks returned by pytest-mock do not need to be used as context managers. "
"The mocker fixture automatically undoes mocking at the end of a test. "
"This warning can be ignored if it was triggered by mocking a context manager. "
- "https://pytest-mock.readthedocs.io/en/latest/remarks.html#usage-as-context-manager",
+ "https://pytest-mock.readthedocs.io/en/latest/usage.html#usage-as-context-manager",
PytestMockWarning,
stacklevel=5,
)