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:
16251625 @staticmethod
16261626 def test_errors_only () -> None :
16271627 """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
16311630
16321631 @staticmethod
16331632 def test_errors_only_functions_as_disable () -> None :
@@ -1643,13 +1642,8 @@ def test_errors_only_functions_as_disable() -> None:
16431642 @staticmethod
16441643 def test_verbose () -> None :
16451644 """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
16531647
16541648 @staticmethod
16551649 def test_enable_all_extensions () -> None :
You can’t perform that action at this time.
0 commit comments