summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2020-11-29 14:18:13 +0100
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-01-01 18:00:32 +0100
commit08b67ff83c2d4e11e7dbbe040e883dc5c5f5de54 (patch)
tree1ddd492d1d936c4d5a31c5a8d55fb61db19b95df
parent9f0677827af88dd56e6a905d2d671bf2debd2ebf (diff)
downloadpylint-git-08b67ff83c2d4e11e7dbbe040e883dc5c5f5de54.tar.gz
Move func_disable_linebased to new functional tests
-rw-r--r--tests/functional/f/func_disable_linebased.py (renamed from tests/input/func_disable_linebased.py)5
-rw-r--r--tests/functional/f/func_disable_linebased.txt2
-rw-r--r--tests/test_func.py2
3 files changed, 6 insertions, 3 deletions
diff --git a/tests/input/func_disable_linebased.py b/tests/functional/f/func_disable_linebased.py
index b94c2e315..bb4ad232c 100644
--- a/tests/input/func_disable_linebased.py
+++ b/tests/functional/f/func_disable_linebased.py
@@ -1,5 +1,6 @@
-# This is a very very very very very very very very very very very very very very very very very very very very very long line.
+# This is a very very very very very very very very very very very very very very very very very very very very very long line. # [line-too-long]
# pylint: disable=line-too-long
+# This is a very very very very very very very very very very very very very very very very very very very very very long line.
"""Make sure enable/disable pragmas work for messages that are applied to lines and not syntax nodes.
A disable pragma for a message that applies to nodes is applied to the whole
@@ -11,4 +12,4 @@ the enclosed lines.
from __future__ import print_function
-print('This is a very long line which the linter will warn about, now that line-too-long has been enabled again.')
+print('This is a very long line which the linter will warn about, now that line-too-long has been enabled again.') # [line-too-long]
diff --git a/tests/functional/f/func_disable_linebased.txt b/tests/functional/f/func_disable_linebased.txt
new file mode 100644
index 000000000..be8b87f3a
--- /dev/null
+++ b/tests/functional/f/func_disable_linebased.txt
@@ -0,0 +1,2 @@
+line-too-long:1::Line too long (146/100)
+line-too-long:15::Line too long (133/100)
diff --git a/tests/test_func.py b/tests/test_func.py
index 1fb4ee0f8..797d4fe03 100644
--- a/tests/test_func.py
+++ b/tests/test_func.py
@@ -125,7 +125,7 @@ def gen_tests(filter_rgx):
tests.append((module_file, messages_file, dependencies))
if UPDATE_FILE.exists():
return tests
- assert len(tests) < 196, "Please do not add new test cases here."
+ assert len(tests) < 55, "Please do not add new test cases here."
return tests