File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
tests/config/pylint_config Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1717PY310_PLUS = sys .version_info [:2 ] >= (3 , 10 )
1818PY311_PLUS = sys .version_info [:2 ] >= (3 , 11 )
1919PY312_PLUS = sys .version_info [:2 ] >= (3 , 12 )
20+ PY314_PLUS = sys .version_info [:2 ] >= (3 , 14 )
2021
2122IS_PYPY = platform .python_implementation () == "PyPy"
2223
Original file line number Diff line number Diff line change 1010import pytest
1111from pytest import CaptureFixture
1212
13+ from pylint .constants import PY314_PLUS
1314from pylint .lint .run import _PylintConfigRun as Run
1415
1516
@@ -29,7 +30,10 @@ def test_pylint_config_main_messages(capsys: CaptureFixture[str]) -> None:
2930 with pytest .raises (SystemExit ):
3031 Run (["generate" , "-h" ])
3132 captured = capsys .readouterr ()
32- assert captured .out .startswith ("usage: pylint-config [options] generate" )
33+ if PY314_PLUS :
34+ assert captured .out .startswith ("usage: pylint-config generate" )
35+ else :
36+ assert captured .out .startswith ("usage: pylint-config [options] generate" )
3337 assert "--interactive" in captured .out
3438
3539 with pytest .raises (SystemExit ) as ex :
You can’t perform that action at this time.
0 commit comments