From c2c654abc5704e1a2766647c12e3be6a9814fff4 Mon Sep 17 00:00:00 2001 From: Matthew Hughes Date: Sun, 8 Dec 2024 12:53:26 +0000 Subject: [PATCH] Fix issues from new `bugbear` Fix errors: tests/unit/test_setuptools_command.py:15:5: B036 Don't except `BaseException` unless you plan to re-raise it. tests/unit/test_setuptools_command.py:30:5: B036 Don't except `BaseException` unless you plan to re-raise it. --- tests/unit/test_setuptools_command.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/test_setuptools_command.py b/tests/unit/test_setuptools_command.py index ba7157ff..cc2b9450 100644 --- a/tests/unit/test_setuptools_command.py +++ b/tests/unit/test_setuptools_command.py @@ -12,7 +12,7 @@ def test_isort_command_smoke(src_dir): command.finalize_options() try: command.run() - except BaseException: + except SystemExit: pass command.distribution.package_dir = {"": "isort"} @@ -27,5 +27,5 @@ def test_isort_command_smoke(src_dir): command.finalize_options() try: command.run() - except BaseException: + except SystemExit: pass