Home
last modified time | relevance | path

Searched refs:athrow (Results 1 - 5 of 5) sorted by relevance

/third_party/python/Lib/test/
H A Dtest_asyncgen.py373 await asg.athrow(GeneratorExit())
1305 v = await g.athrow(FooEr)
1349 await g.athrow(FooEr)
1389 await g.athrow(ValueError)
1406 v = await g.athrow(ZeroDivisionError)
1424 v = await g.athrow(ZeroDivisionError)
1628 r"cannot reuse already awaited aclose\(\)/athrow\(\)"
H A Dtest_collections.py1241 def athrow(self, typ, val=None, tb=None): pass member in TestOneTrickPonyABCs.test_AsyncGenerator.NonAGen1
1252 def athrow(self, typ, val=None, tb=None): pass member in TestOneTrickPonyABCs.test_AsyncGenerator.NonAGen3
1266 async def athrow(self, typ, val=None, tb=None): pass member in TestOneTrickPonyABCs.test_AsyncGenerator.Gen
1271 async def athrow(self, typ, val=None, tb=None): member in TestOneTrickPonyABCs.test_AsyncGenerator.MinimalAGen
1272 await super().athrow(typ, val, tb)
1282 self.validate_abstract_methods(AsyncGenerator, 'asend', 'athrow')
1301 run_async(mgen.athrow(ValueError))
1305 async def athrow(self, *args): raise ValueError member in TestOneTrickPonyABCs.test_AsyncGenerator.FailOnClose
1312 async def athrow(self, *args): pass member in TestOneTrickPonyABCs.test_AsyncGenerator.IgnoreGeneratorExit
H A Dtest_typing.py6011 def athrow(self, typ, val=None, tb=None): member in CollectionsAbcTests.test_subclassing_async_generator.G
/third_party/python/Lib/
H A D_collections_abc.py220 async def athrow(self, typ, val=None, tb=None): member in AsyncGenerator
236 await self.athrow(GeneratorExit)
246 'asend', 'athrow', 'aclose')
H A Dcontextlib.py222 await self.gen.athrow(typ, value, traceback)
234 # was passed to athrow() and later wrapped into a RuntimeError
257 raise RuntimeError("generator didn't stop after athrow()")

Completed in 20 milliseconds