Lines Matching defs:context
37 async with manager as context:
38 self.assertIs(manager, context)
301 # If the context manager wrapped StopAsyncIteration in a RuntimeError,
381 async def context():
387 @context()
400 async def context():
408 @context()
422 async def context():
428 @context()
526 context = exc.__context__
531 exc.__context__ = context
671 with self.assertRaisesRegex(TypeError, 'asynchronous context manager'):
673 with self.assertRaisesRegex(TypeError, 'asynchronous context manager'):
675 with self.assertRaisesRegex(TypeError, 'asynchronous context manager'):
753 with self.assertRaisesRegex(TypeError, 'asynchronous context manager'):