* instrumentation/asyncio: catch CancelledError exception in tests
After a29242f49386c097defce500b138dc00f06ce300 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>
* Calling the exception() method when future is in the cancelled state is causing a CancelledError
Calling the exception() method when future is in the cancelled state is causing a CancelledError. we should check the cancelled state first and call f.exception() only if it's not cancelled.
* modify lint
* modify lint
* Update CHANGELOG.md
* remove init()
* add future cancelled test code
* add future cancelled test code
* add future cancelled test code
* add future cancelled test code
* add future cancelled test code
* add future cancelled test code
* lint
* lint
* remove if condition
* modify test code
* lint
* lint
* remove pytest
---------
Co-authored-by: Diego Hurtado <ocelotl@users.noreply.github.com>