summaryrefslogtreecommitdiff
path: root/pylint
diff options
context:
space:
mode:
Diffstat (limited to 'pylint')
-rw-r--r--pylint/testutils/__init__.py4
-rw-r--r--pylint/testutils/reporter_for_tests.py (renamed from pylint/testutils/test_reporter.py)2
-rw-r--r--pylint/testutils/utils.py7
3 files changed, 8 insertions, 5 deletions
diff --git a/pylint/testutils/__init__.py b/pylint/testutils/__init__.py
index d059417db..348d2bf36 100644
--- a/pylint/testutils/__init__.py
+++ b/pylint/testutils/__init__.py
@@ -38,11 +38,11 @@ __all__ = [
"Message",
"MinimalTestReporter",
"set_config",
- "TestReporter",
+ "GenericTestReporter",
"UPDATE_OPTION",
]
-from pylint.testutils.test_reporter import MinimalTestReporter, TestReporter
+from pylint.testutils.reporter_for_tests import GenericTestReporter, MinimalTestReporter
from pylint.testutils.utils import (
UPDATE_OPTION,
CheckerTestCase,
diff --git a/pylint/testutils/test_reporter.py b/pylint/testutils/reporter_for_tests.py
index 027c3901f..33d94dee0 100644
--- a/pylint/testutils/test_reporter.py
+++ b/pylint/testutils/reporter_for_tests.py
@@ -8,7 +8,7 @@ from pylint import interfaces
from pylint.reporters import BaseReporter
-class TestReporter(BaseReporter):
+class GenericTestReporter(BaseReporter):
"""reporter storing plain text messages"""
__implements__ = interfaces.IReporter
diff --git a/pylint/testutils/utils.py b/pylint/testutils/utils.py
index 477f64156..f2b45e2d5 100644
--- a/pylint/testutils/utils.py
+++ b/pylint/testutils/utils.py
@@ -24,7 +24,10 @@ import pytest
from pylint import checkers, interfaces
from pylint.lint import PyLinter
-from pylint.testutils.test_reporter import FunctionalTestReporter, TestReporter
+from pylint.testutils.reporter_for_tests import (
+ FunctionalTestReporter,
+ GenericTestReporter,
+)
from pylint.utils import ASTWalker
SYS_VERS_STR = "%d%d%d" % sys.version_info[:3]
@@ -183,7 +186,7 @@ class CheckerTestCase:
# Init
-test_reporter = TestReporter()
+test_reporter = GenericTestReporter()
linter = PyLinter()
linter.set_reporter(test_reporter)
linter.config.persistent = 0