From 695206f27d652531276b73c43c581c1eea71947a 2019-12-01 19:15:51 From: Quentin Peter Date: 2019-12-01 19:15:51 Subject: [PATCH] Add test --- diff --git a/IPython/core/tests/test_ultratb.py b/IPython/core/tests/test_ultratb.py index e77f444..9190f5e 100644 --- a/IPython/core/tests/test_ultratb.py +++ b/IPython/core/tests/test_ultratb.py @@ -296,6 +296,11 @@ except Exception: tt.AssertPrints("ValueError", suppress=False): ip.run_cell(self.SUPPRESS_CHAINING_CODE) + def test_plain_exception(self): + with tt.AssertPrints(["KeyError", "NameError", "During handling"]): + ip.run_cell("%xmode Plain") + ip.run_cell(self.EXCEPTION_DURING_HANDLING_CODE) + class RecursionTest(unittest.TestCase): DEFINITIONS = """