summaryrefslogtreecommitdiff
path: root/tests/checkers/unittest_strings.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/checkers/unittest_strings.py')
-rw-r--r--tests/checkers/unittest_strings.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/checkers/unittest_strings.py b/tests/checkers/unittest_strings.py
index 9a7ca0b27..dcba983bb 100644
--- a/tests/checkers/unittest_strings.py
+++ b/tests/checkers/unittest_strings.py
@@ -14,7 +14,7 @@
import astroid
from pylint.checkers import strings
-from pylint.testutils import CheckerTestCase, Message
+from pylint.testutils import CheckerTestCase, TestMessage
TEST_TOKENS = (
'"X"',
@@ -81,7 +81,7 @@ class TestStringChecker(CheckerTestCase):
):
node = astroid.extract_node(code)
with self.assertAddsMessages(
- Message(
+ TestMessage(
"bad-string-format-type", node=node, args=(arg_type, format_type)
)
):