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 17
17
PY310_PLUS = sys .version_info [:2 ] >= (3 , 10 )
18
18
PY311_PLUS = sys .version_info [:2 ] >= (3 , 11 )
19
19
PY312_PLUS = sys .version_info [:2 ] >= (3 , 12 )
20
+ PY314_PLUS = sys .version_info [:2 ] >= (3 , 14 )
20
21
21
22
IS_PYPY = platform .python_implementation () == "PyPy"
22
23
Original file line number Diff line number Diff line change 10
10
import pytest
11
11
from pytest import CaptureFixture
12
12
13
+ from pylint .constants import PY314_PLUS
13
14
from pylint .lint .run import _PylintConfigRun as Run
14
15
15
16
@@ -29,7 +30,10 @@ def test_pylint_config_main_messages(capsys: CaptureFixture[str]) -> None:
29
30
with pytest .raises (SystemExit ):
30
31
Run (["generate" , "-h" ])
31
32
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" )
33
37
assert "--interactive" in captured .out
34
38
35
39
with pytest .raises (SystemExit ) as ex :
You can’t perform that action at this time.
0 commit comments