From f7e9360b9a77aa40fb9281b7e4a5bed4969b38fd Mon Sep 17 00:00:00 2001 From: Pradyun Gedam Date: Sun, 7 Apr 2024 20:06:00 +0100 Subject: [PATCH] Drop a constant that is not used anywhere This is unused and thus can be removed. --- tests/test_traceback.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/test_traceback.py b/tests/test_traceback.py index af226f319..7f1525c28 100644 --- a/tests/test_traceback.py +++ b/tests/test_traceback.py @@ -9,8 +9,6 @@ from rich.theme import Theme from rich.traceback import Traceback, install -CAPTURED_EXCEPTION = 'Traceback (most recent call last):\n╭──────────────────────────────────────────────────────────────────────────────────────────────────╮\n│ File "/Users/textualize/projects/rich/tests/test_traceback.py", line 26, in test_handler │\n│ 23 try: │\n│ 24 old_handler = install(console=console, line_numbers=False) │\n│ 25 try: │\n│ ❱ 26 1 / 0 │\n│ 27 except Exception: │\n│ 28 exc_type, exc_value, traceback = sys.exc_info() │\n│ 29 sys.excepthook(exc_type, exc_value, traceback) │\n╰──────────────────────────────────────────────────────────────────────────────────────────────────╯\nZeroDivisionError: division by zero\n' - def test_handler(): console = Console(file=io.StringIO(), width=100, color_system=None)