diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2015-08-26 22:09:27 +0300 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2015-08-26 22:09:27 +0300 |
commit | a1b3c9623afe3c5993d183ec9e6d1baceb7cc3ae (patch) | |
tree | f6bbd572abdb6695db5c051ec180486184d0e9b4 /pylint/test/unittest_checker_logging.py | |
parent | 1746fce4e595f4b20982892dc6e6a0bd13556597 (diff) | |
download | pylint-git-a1b3c9623afe3c5993d183ec9e6d1baceb7cc3ae.tar.gz |
Use the new node names for the visit and leave methods
Also, emit a PendingDeprecationWarning if the old names are still
used, this support being removed in pylint 2.0.
Diffstat (limited to 'pylint/test/unittest_checker_logging.py')
-rw-r--r-- | pylint/test/unittest_checker_logging.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pylint/test/unittest_checker_logging.py b/pylint/test/unittest_checker_logging.py index e25daac68..0f19a3140 100644 --- a/pylint/test/unittest_checker_logging.py +++ b/pylint/test/unittest_checker_logging.py @@ -19,7 +19,7 @@ class LoggingModuleDetectionTest(CheckerTestCase): self.checker.visit_module(None) self.checker.visit_import(stmts[0]) with self.assertAddsMessages(Message('logging-not-lazy', node=stmts[1])): - self.checker.visit_callfunc(stmts[1]) + self.checker.visit_call(stmts[1]) def test_detects_renamed_standard_logging_module(self): stmts = test_utils.extract_node(""" @@ -29,7 +29,7 @@ class LoggingModuleDetectionTest(CheckerTestCase): self.checker.visit_module(None) self.checker.visit_import(stmts[0]) with self.assertAddsMessages(Message('logging-not-lazy', node=stmts[1])): - self.checker.visit_callfunc(stmts[1]) + self.checker.visit_call(stmts[1]) @set_config(logging_modules=['logging', 'my.logging']) def test_nonstandard_logging_module(self): @@ -40,7 +40,7 @@ class LoggingModuleDetectionTest(CheckerTestCase): self.checker.visit_module(None) self.checker.visit_import(stmts[0]) with self.assertAddsMessages(Message('logging-not-lazy', node=stmts[1])): - self.checker.visit_callfunc(stmts[1]) + self.checker.visit_call(stmts[1]) if __name__ == '__main__': |