File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change 11# Copyright 2017 Palantir Technologies, Inc.
2+ import sys
23import pytest
34from pyls import IS_WIN
45
6+ IS_PY3 = sys .version_info .major == 3
7+
58unix_only = pytest .mark .skipif (IS_WIN , reason = "Unix only" )
69windows_only = pytest .mark .skipif (not IS_WIN , reason = "Windows only" )
10+ py3_only = pytest .mark .skipif (not IS_PY3 , reason = "Python3 only" )
Original file line number Diff line number Diff line change 33import os
44import tempfile
55
6+ from test import py3_only
67from pyls import lsp , uris
78from pyls .workspace import Document
89from pyls .plugins import pylint_lint
@@ -49,6 +50,7 @@ def test_pylint(config):
4950 assert unused_import ['severity' ] == lsp .DiagnosticSeverity .Warning
5051
5152
53+ @py3_only
5254def test_syntax_error_pylint (config ):
5355 with temp_document (DOC_SYNTAX_ERR ) as doc :
5456 diag = pylint_lint .pyls_lint (config , doc , True )[0 ]
You can’t perform that action at this time.
0 commit comments