def testExceptionInEnter(self):
        try:
            with self.Dummy() as a, self.EnterRaises():
                self.fail('body of bad with executed')
        except __HOLE__:
            pass
        else:
            self.fail('RuntimeError not reraised')
        self.assertTrue(a.enter_called)
        self.assertTrue(a.exit_called)
dataset/ETHPy150Open amrdraz/kodr/app/brython/www/src/Lib/test/test_with.py/NestedWith.testExceptionInEnter