opentelemetry-python-contrib/instrumentation/opentelemetry-instrumentati.../tests
Riccardo Magliocchetti 60fb936b7e
instrumentation/asyncio: catch CancelledError exception in tests (#2690)
* instrumentation/asyncio: catch CancelledError exception in tests

After a29242f493 we are re-raising the
CancelledError so we need to catch it on the caller side.

Fix #2688

* instrument/asyncio: don't test anext on python < 3.10

Since it's not available there.

* instrumentation/asyncio: use unittest.skipIf instead of reimplementing it

---------

Co-authored-by: Leighton Chen <lechen@microsoft.com>
2024-07-10 12:34:39 -06:00
..
__init__.py Feature/asyncio instrumentation (#1943) 2024-02-14 15:44:17 -06:00
common_test_func.py Feature/asyncio instrumentation (#1943) 2024-02-14 15:44:17 -06:00
test_asyncio_anext.py instrumentation/asyncio: catch CancelledError exception in tests (#2690) 2024-07-10 12:34:39 -06:00
test_asyncio_cancellation.py instrumentation/asyncio: catch CancelledError exception in tests (#2690) 2024-07-10 12:34:39 -06:00
test_asyncio_create_task.py Feature/asyncio instrumentation (#1943) 2024-02-14 15:44:17 -06:00
test_asyncio_ensure_future.py Feature/asyncio instrumentation (#1943) 2024-02-14 15:44:17 -06:00
test_asyncio_future_cancellation.py Bugfix/check future cancelled (#2461) 2024-05-07 18:40:21 -05:00
test_asyncio_gather.py Feature/asyncio instrumentation (#1943) 2024-02-14 15:44:17 -06:00
test_asyncio_integration.py Feature/asyncio instrumentation (#1943) 2024-02-14 15:44:17 -06:00
test_asyncio_run_coroutine_threadsafe.py Feature/asyncio instrumentation (#1943) 2024-02-14 15:44:17 -06:00
test_asyncio_taskgroup.py instrumentation/asyncio: catch CancelledError exception in tests (#2690) 2024-07-10 12:34:39 -06:00
test_asyncio_to_thread.py instrumentation/asyncio: catch CancelledError exception in tests (#2690) 2024-07-10 12:34:39 -06:00
test_asyncio_utils.py Feature/asyncio instrumentation (#1943) 2024-02-14 15:44:17 -06:00
test_asyncio_wait.py fix(async-io): instrumented `asyncio.wait_for` properly raises `asyncio.TimeoutError` (#2637) 2024-07-02 08:21:15 -07:00