def testTasklet_YieldTupleTypeError(self):
    self.ExpectWarnings()

    @tasklets.tasklet
    def good():
      yield tasklets.sleep(0)

    @tasklets.tasklet
    def bad():
      raise ZeroDivisionError
      yield tasklets.sleep(0)

    @tasklets.tasklet
    def foo():
      try:
        yield good(), bad(), 42
      except __HOLE__:
        pass
      else:
        self.assertFalse('Should have raised TypeError')
    foo().check_success()
dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/tasklets_test.py/TaskletTests.testTasklet_YieldTupleTypeError