We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
test_asyncio_wait.py
1 parent 67d1006 commit 3c7766fCopy full SHA for 3c7766f
instrumentation/opentelemetry-instrumentation-asyncio/tests/test_asyncio_wait.py
@@ -69,17 +69,17 @@ async def main():
69
self.assertEqual(len(spans), 2)
70
71
def test_asyncio_wait_for_with_timeout(self):
72
- ex = None
+ expected_timeout_error = None
73
74
async def main():
75
- nonlocal ex
+ nonlocal expected_timeout_error
76
try:
77
await asyncio.wait_for(async_func(), 0.01)
78
- except asyncio.TimeoutError as e:
79
- ex = e
+ except asyncio.TimeoutError as timeout_error:
+ expected_timeout_error = timeout_error
80
81
asyncio.run(main())
82
- self.assertNotEqual(ex, None)
+ self.assertNotEqual(expected_timeout_error, None)
83
84
def test_asyncio_as_completed(self):
85
0 commit comments