We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2ddda69 commit 493545aCopy full SHA for 493545a
Lib/test/test_asyncio/test_timeouts.py
@@ -115,7 +115,7 @@ async def test_foreign_exception_passed(self):
115
raise KeyError
116
self.assertFalse(cm.expired())
117
118
- async def test_foreign_exception_on_timeout(self):
+ async def test_foreign_exception_on_timeout(self):
119
async def crash():
120
try:
121
await asyncio.sleep(1)
@@ -124,6 +124,7 @@ async def crash():
124
with self.assertRaises(ZeroDivisionError):
125
async with asyncio.timeout(0.01):
126
await crash()
127
+
128
async def test_foreign_cancel_doesnt_timeout_if_not_expired(self):
129
with self.assertRaises(asyncio.CancelledError):
130
async with asyncio.timeout(10) as cm:
0 commit comments