def testYieldError(self):
    try:
      self.provoke_yield_error()
    except __HOLE__, err:
      self.assertTrue(re.match(
          "A tasklet should not yield a plain value: "
          ".*bad_user_code.*yielded 'abc'$",
          str(err)))
dataset/ETHPy150Open GoogleCloudPlatform/datastore-ndb-python/ndb/tasklets_test.py/TracebackTests.testYieldError