diff options
author | CoprDistGit <infra@openeuler.org> | 2023-08-16 02:36:45 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-08-16 02:36:45 +0000 |
commit | 364214a67877994dca45b2a2a72d8976f09a236e (patch) | |
tree | 350ea9c2546cff3cf8b79ea5fe85228148c2b796 /opentracing.patch | |
parent | 92967ebcbcb878524b96465ad454b46077ab6008 (diff) |
automatic import of python-opentracingopeneuler23.03
Diffstat (limited to 'opentracing.patch')
-rw-r--r-- | opentracing.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/opentracing.patch b/opentracing.patch new file mode 100644 index 0000000..60edde6 --- /dev/null +++ b/opentracing.patch @@ -0,0 +1,30 @@ +diff --git a/tests/scope_managers/test_asyncio.py b/tests/scope_managers/test_asyncio.py +index 14079c4..450260b 100644 +--- a/tests/scope_managers/test_asyncio.py ++++ b/tests/scope_managers/test_asyncio.py +@@ -35,8 +35,8 @@ class AsyncioCompabilityCheck(TestCase, ScopeCompatibilityCheckMixin): + return AsyncioScopeManager() + + def run_test(self, test_fn): +- @asyncio.coroutine +- def async_test_fn(): ++ ++ async def async_test_fn(): + test_fn() + asyncio.get_event_loop().run_until_complete(async_test_fn()) + +diff --git a/tests/scope_managers/test_contextvars.py b/tests/scope_managers/test_contextvars.py +index dd1820f..be7587f 100644 +--- a/tests/scope_managers/test_contextvars.py ++++ b/tests/scope_managers/test_contextvars.py +@@ -36,8 +36,8 @@ class AsyncioContextVarsCompabilityCheck( + return ContextVarsScopeManager() + + def run_test(self, test_fn): +- @asyncio.coroutine +- def async_test_fn(): ++ ++ async def async_test_fn(): + test_fn() + asyncio.get_event_loop().run_until_complete(async_test_fn()) + |