Lines Matching refs:ctx
45 async def ctx():
49 async with ctx():
55 async with ctx():
190 ctx = whee()
191 await ctx.__aenter__()
193 self.assertFalse(await ctx.__aexit__(TypeError, TypeError("foo"), None))
203 ctx = whoo()
204 await ctx.__aenter__()
206 await ctx.__aexit__(TypeError, TypeError('foo'), None)
214 ctx = whoo()
216 await ctx.__aenter__()
224 ctx = whoo()
225 await ctx.__aenter__()
227 await ctx.__aexit__(None, None, None)
238 ctx = whoo()
239 await ctx.__aenter__()
241 await ctx.__aexit__(RuntimeError, None, None)