summaryrefslogtreecommitdiff
path: root/tests/lint
diff options
context:
space:
mode:
authorDaniël van Noord <13665637+DanielNoord@users.noreply.github.com>2022-04-15 12:27:46 +0200
committerDaniël van Noord <13665637+DanielNoord@users.noreply.github.com>2022-04-15 13:01:35 +0200
commit2f7cb9870c61592bf663359fb21250e007c022fe (patch)
treeacefaaaa6672bb585ac379d07b340aa66952b9b2 /tests/lint
parent63173f8f3a21671155c9a3122c5ecaa8a66ce0b5 (diff)
downloadpylint-git-2f7cb9870c61592bf663359fb21250e007c022fe.tar.gz
Deprecate ``get_global_option``
Diffstat (limited to 'tests/lint')
-rw-r--r--tests/lint/unittest_expand_modules.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/lint/unittest_expand_modules.py b/tests/lint/unittest_expand_modules.py
index ac9852938..c1cfac951 100644
--- a/tests/lint/unittest_expand_modules.py
+++ b/tests/lint/unittest_expand_modules.py
@@ -12,7 +12,6 @@ import pytest
from pylint.checkers import BaseChecker
from pylint.lint.expand_modules import _is_in_ignore_list_re, expand_modules
from pylint.testutils import CheckerTestCase, set_config
-from pylint.utils.utils import get_global_option
def test__is_in_ignore_list_re_match() -> None:
@@ -114,7 +113,7 @@ class TestExpandModules(CheckerTestCase):
files_or_modules,
ignore_list,
ignore_list_re,
- get_global_option(self.checker, "ignore-paths"),
+ self.linter.config.ignore_paths,
)
modules.sort(key=lambda d: d["name"])
assert modules == expected
@@ -140,7 +139,7 @@ class TestExpandModules(CheckerTestCase):
files_or_modules,
ignore_list,
ignore_list_re,
- get_global_option(self.checker, "ignore-paths"),
+ self.linter.config.ignore_paths,
)
modules.sort(key=lambda d: d["name"])
assert modules == expected