Skip to content

Commit

Permalink
Fix issues from new bugbear
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
matthewhughes934 committed Jan 14, 2025
1 parent fe3c227 commit c2c654a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/test_setuptools_command.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"}
Expand All @@ -27,5 +27,5 @@ def test_isort_command_smoke(src_dir):
command.finalize_options()
try:
command.run()
except BaseException:
except SystemExit:
pass

0 comments on commit c2c654a

Please sign in to comment.