File tree Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Expand file tree Collapse file tree 1 file changed +4
-10
lines changed Original file line number Diff line number Diff line change @@ -1625,9 +1625,8 @@ def test_generate_toml_config_disable_symbolic_names() -> None:
1625
1625
@staticmethod
1626
1626
def test_errors_only () -> None :
1627
1627
"""Test the --errors-only flag."""
1628
- with pytest .raises (SystemExit ):
1629
- run = Run (["--errors-only" ])
1630
- assert run .linter ._error_mode
1628
+ run = Run ([str (UNNECESSARY_LAMBDA ), "--errors-only" ], exit = False )
1629
+ assert run .linter ._error_mode
1631
1630
1632
1631
@staticmethod
1633
1632
def test_errors_only_functions_as_disable () -> None :
@@ -1643,13 +1642,8 @@ def test_errors_only_functions_as_disable() -> None:
1643
1642
@staticmethod
1644
1643
def test_verbose () -> None :
1645
1644
"""Test the --verbose flag."""
1646
- with pytest .raises (SystemExit ):
1647
- run = Run (["--verbose" ])
1648
- assert run .verbose
1649
-
1650
- with pytest .raises (SystemExit ):
1651
- run = Run (["--verbose=True" ])
1652
- assert run .verbose
1645
+ run = Run ([str (UNNECESSARY_LAMBDA ), "--verbose" ], exit = False )
1646
+ assert run .verbose
1653
1647
1654
1648
@staticmethod
1655
1649
def test_enable_all_extensions () -> None :
You can’t perform that action at this time.
0 commit comments