summaryrefslogtreecommitdiff
path: root/tests/lint
diff options
context:
space:
mode:
authorDaniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>2022-04-16 16:49:46 +0200
committerGitHub <noreply@github.com>2022-04-16 16:49:46 +0200
commit1de6da157c260c5a1398bc59c5f2b57abc4912a6 (patch)
treef0a9ea883fe4b17cfd5017d948c60fd0b62e8aa8 /tests/lint
parent69676a5348672e2af76c1e99d210698b431829f9 (diff)
downloadpylint-git-1de6da157c260c5a1398bc59c5f2b57abc4912a6.tar.gz
Improve CPU count detection in cgroup environments and fix CI (#6098)
Co-authored-by: Jacob Walls <jacobtylerwalls@gmail.com>
Diffstat (limited to 'tests/lint')
-rw-r--r--tests/lint/unittest_lint.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/lint/unittest_lint.py b/tests/lint/unittest_lint.py
index 82ed9d3d5..97a9220cd 100644
--- a/tests/lint/unittest_lint.py
+++ b/tests/lint/unittest_lint.py
@@ -723,6 +723,7 @@ class _CustomPyLinter(PyLinter):
)
+@pytest.mark.needs_two_cores
def test_custom_should_analyze_file() -> None:
"""Check that we can write custom should_analyze_file that work
even for arguments.
@@ -751,6 +752,7 @@ def test_custom_should_analyze_file() -> None:
# we do the check with jobs=1 as well, so that we are sure that the duplicates
# are created by the multiprocessing problem.
+@pytest.mark.needs_two_cores
@pytest.mark.parametrize("jobs", [1, 2])
def test_multiprocessing(jobs: int) -> None:
"""Check that multiprocessing does not create duplicates."""