def test_D_RaiseThrough(self):

        class TestException(Exception):
            pass

        counter = []

        def failer():
            counter.append(1)
            raise TypeError()

        numDelays = 4
        delays = [datetime.timedelta() for _ in range(0, numDelays)]
        try:
            phlsys_tryloop.try_loop_delay(failer, delays, TestException)
        except __HOLE__:
            pass
        else:
            raise Exception("did not receive TypeError")

        self.assertEqual(1, len(counter))
dataset/ETHPy150Open bloomberg/phabricator-tools/py/phl/phlsys_tryloop__t.py/Test.test_D_RaiseThrough