Skip to content

Commit 3c7766f

Browse files
committed
fix: lint issues with test_asyncio_wait.py
1 parent 67d1006 commit 3c7766f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

instrumentation/opentelemetry-instrumentation-asyncio/tests/test_asyncio_wait.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -69,17 +69,17 @@ async def main():
6969
self.assertEqual(len(spans), 2)
7070

7171
def test_asyncio_wait_for_with_timeout(self):
72-
ex = None
72+
expected_timeout_error = None
7373

7474
async def main():
75-
nonlocal ex
75+
nonlocal expected_timeout_error
7676
try:
7777
await asyncio.wait_for(async_func(), 0.01)
78-
except asyncio.TimeoutError as e:
79-
ex = e
78+
except asyncio.TimeoutError as timeout_error:
79+
expected_timeout_error = timeout_error
8080

8181
asyncio.run(main())
82-
self.assertNotEqual(ex, None)
82+
self.assertNotEqual(expected_timeout_error, None)
8383

8484
def test_asyncio_as_completed(self):
8585
async def main():

0 commit comments

Comments
 (0)