def testWithRaise(self):
        counter = 0
        try:
            counter += 1
            with mock_contextmanager_generator():
                counter += 10
                raise RuntimeError
            counter += 100 # Not reached
        except __HOLE__:
            self.assertEqual(counter, 11)
        else:
            self.fail("Didn't raise RuntimeError")
dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_with.py/NonLocalFlowControlTestCase.testWithRaise