[issue31131] asyncio.wait_for() TimeoutError doesn't provide full traceback

2020-05-17 Thread Chris Jerdonek
Chris Jerdonek added the comment: This issue was just resolved by the combination of #40607 followed by #31033 (merged for 3.9.0 beta 1). Running the example code above now results in the following: Traceback (most recent call last): File "/.../cpython/test-31131.py", line 5, in run aw

[issue31131] asyncio.wait_for() TimeoutError doesn't provide full traceback

2017-09-24 Thread Surenkumar Nihalani
Surenkumar Nihalani added the comment: this'd be useful to me as well. I'd propose we pass the future in the exception object. Can write a write a tiny patch for this if someone would approve. -- nosy: +snihalani ___ Python tracker

[issue31131] asyncio.wait_for() TimeoutError doesn't provide full traceback

2017-08-07 Thread Chris Jerdonek
New submission from Chris Jerdonek: In Python 3.6.1, if asyncio.wait_for() times out with a TimeoutError, the traceback doesn't show what line the code was waiting on when the timeout occurred. This makes it more difficult to diagnose the cause of a timeout. To reproduce, you can use the follo