summaryrefslogtreecommitdiff
path: root/tests/regrtest_data
diff options
context:
space:
mode:
authorchohner <mail@chohner.com>2021-04-07 21:47:54 +0200
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-04-07 22:10:49 +0200
commit8b18d91daab5c3fbf036de77d8e1e21fde0a9e02 (patch)
treef0d7fc358842aec4a0abd03257445222f13bc5ac /tests/regrtest_data
parentb033f7571d7e2cc19278eacb04d13de465448176 (diff)
downloadpylint-git-8b18d91daab5c3fbf036de77d8e1e21fde0a9e02.tar.gz
test: fix fail_under regression
Diffstat (limited to 'tests/regrtest_data')
-rw-r--r--tests/regrtest_data/fail_under_minus10.py (renamed from tests/regrtest_data/fail_under_minus6.py)7
-rw-r--r--tests/regrtest_data/fail_under_plus6.py8
-rw-r--r--tests/regrtest_data/fail_under_plus7_5.py9
3 files changed, 10 insertions, 14 deletions
diff --git a/tests/regrtest_data/fail_under_minus6.py b/tests/regrtest_data/fail_under_minus10.py
index 7984ffd1b..5ce3785ba 100644
--- a/tests/regrtest_data/fail_under_minus6.py
+++ b/tests/regrtest_data/fail_under_minus10.py
@@ -1,8 +1,6 @@
"""
- Pylint score: -6
+ Pylint score: -10
"""
-import os
-
import nonexistent
@@ -11,6 +9,3 @@ def loop():
for i in range(5):
count += 1
print(count)
-
-path = '/tmp'
-os.path.exists(path)
diff --git a/tests/regrtest_data/fail_under_plus6.py b/tests/regrtest_data/fail_under_plus6.py
deleted file mode 100644
index 640088a3d..000000000
--- a/tests/regrtest_data/fail_under_plus6.py
+++ /dev/null
@@ -1,8 +0,0 @@
-""""
- pylint score: +6
-"""
-
-import os
-
-path = '/tmp'
-os.path.exists(path)
diff --git a/tests/regrtest_data/fail_under_plus7_5.py b/tests/regrtest_data/fail_under_plus7_5.py
new file mode 100644
index 000000000..fea27f4ec
--- /dev/null
+++ b/tests/regrtest_data/fail_under_plus7_5.py
@@ -0,0 +1,9 @@
+""""
+ pylint score: +7.50
+"""
+
+import os
+
+def func():
+ path = '/tmp'
+ os.path.exists(path)