aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/python/pytest-asyncio/patches
diff options
context:
space:
mode:
authormaxim-yurchuk <maxim-yurchuk@yandex-team.com>2024-10-09 12:29:46 +0300
committermaxim-yurchuk <maxim-yurchuk@yandex-team.com>2024-10-09 13:14:22 +0300
commit9731d8a4bb7ee2cc8554eaf133bb85498a4c7d80 (patch)
treea8fb3181d5947c0d78cf402aa56e686130179049 /contrib/python/pytest-asyncio/patches
parenta44b779cd359f06c3ebbef4ec98c6b38609d9d85 (diff)
downloadydb-9731d8a4bb7ee2cc8554eaf133bb85498a4c7d80.tar.gz
publishFullContrib: true for ydb
<HIDDEN_URL> commit_hash:c82a80ac4594723cebf2c7387dec9c60217f603e
Diffstat (limited to 'contrib/python/pytest-asyncio/patches')
-rw-r--r--contrib/python/pytest-asyncio/patches/01-enable-auto-mode.patch11
-rw-r--r--contrib/python/pytest-asyncio/patches/02-return-asyncio-function-result-for-canonization.patch11
2 files changed, 22 insertions, 0 deletions
diff --git a/contrib/python/pytest-asyncio/patches/01-enable-auto-mode.patch b/contrib/python/pytest-asyncio/patches/01-enable-auto-mode.patch
new file mode 100644
index 0000000000..40b3fbb1a1
--- /dev/null
+++ b/contrib/python/pytest-asyncio/patches/01-enable-auto-mode.patch
@@ -0,0 +1,11 @@
+--- contrib/python/pytest-asyncio/pytest_asyncio/plugin.py (index)
++++ contrib/python/pytest-asyncio/pytest_asyncio/plugin.py (working tree)
+@@ -78,7 +78,7 @@ def pytest_addoption(parser: Parser, pluginmanager: PytestPluginManager) -> None
+ parser.addini(
+ "asyncio_mode",
+ help="default value for --asyncio-mode",
+- default="strict",
++ default="auto",
+ )
+
+
diff --git a/contrib/python/pytest-asyncio/patches/02-return-asyncio-function-result-for-canonization.patch b/contrib/python/pytest-asyncio/patches/02-return-asyncio-function-result-for-canonization.patch
new file mode 100644
index 0000000000..2453eb4729
--- /dev/null
+++ b/contrib/python/pytest-asyncio/patches/02-return-asyncio-function-result-for-canonization.patch
@@ -0,0 +1,11 @@
+--- contrib/python/pytest-asyncio/pytest_asyncio/plugin.py (index)
++++ contrib/python/pytest-asyncio/pytest_asyncio/plugin.py (working tree)
+@@ -522,7 +522,7 @@ def wrap_in_sync(
+ return
+ task = asyncio.ensure_future(coro, loop=_loop)
+ try:
+- _loop.run_until_complete(task)
++ return _loop.run_until_complete(task)
+ except BaseException:
+ # run_until_complete doesn't get the result from exceptions
+ # that are not subclasses of `Exception`. Consume all