diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2020-04-27 10:41:20 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2020-04-27 10:41:20 +0200 |
commit | a0b8c2b23d198d6b3ff7d6e22bd4749b8a8a99cc (patch) | |
tree | 73e624fc5b61d6827dc6e84bb54d35c4182c0914 /tests | |
parent | cc698005bffe5f40a6f1bee6c742cbe5bddb2a10 (diff) | |
download | pylint-git-a0b8c2b23d198d6b3ff7d6e22bd4749b8a8a99cc.tar.gz |
Fix formatting error in test file
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unittest_checker_logging.py | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/unittest_checker_logging.py b/tests/unittest_checker_logging.py index a025fb6a2..3802c233f 100644 --- a/tests/unittest_checker_logging.py +++ b/tests/unittest_checker_logging.py @@ -30,7 +30,9 @@ class TestLoggingModuleDetection(CheckerTestCase): ) self.checker.visit_module(None) self.checker.visit_import(stmts[0]) - with self.assertAddsMessages(Message("logging-not-lazy", node=stmts[1], args=("lazy %",))): + with self.assertAddsMessages( + Message("logging-not-lazy", node=stmts[1], args=("lazy %",)) + ): self.checker.visit_call(stmts[1]) def test_dont_crash_on_invalid_format_string(self): @@ -51,7 +53,9 @@ class TestLoggingModuleDetection(CheckerTestCase): ) self.checker.visit_module(None) self.checker.visit_import(stmts[0]) - with self.assertAddsMessages(Message("logging-not-lazy", node=stmts[1], args=("lazy %",))): + with self.assertAddsMessages( + Message("logging-not-lazy", node=stmts[1], args=("lazy %",)) + ): self.checker.visit_call(stmts[1]) @set_config(logging_modules=["logging", "my.logging"]) @@ -64,7 +68,9 @@ class TestLoggingModuleDetection(CheckerTestCase): ) self.checker.visit_module(None) self.checker.visit_import(stmts[0]) - with self.assertAddsMessages(Message("logging-not-lazy", node=stmts[1], args=("lazy %",))): + with self.assertAddsMessages( + Message("logging-not-lazy", node=stmts[1], args=("lazy %",)) + ): self.checker.visit_call(stmts[1]) def _assert_logging_format_no_messages(self, stmt): |