summaryrefslogtreecommitdiff
path: root/pylint/test/unittest_checker_base.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/test/unittest_checker_base.py')
-rw-r--r--pylint/test/unittest_checker_base.py25
1 files changed, 2 insertions, 23 deletions
diff --git a/pylint/test/unittest_checker_base.py b/pylint/test/unittest_checker_base.py
index 538cf94..0b1cddd 100644
--- a/pylint/test/unittest_checker_base.py
+++ b/pylint/test/unittest_checker_base.py
@@ -354,7 +354,7 @@ class IterableTest(CheckerTestCase):
with self.assertNoMessages():
self.checker.visit_yieldfrom(node)
- def test_non_iterable_in_starargs(self):
+ def test_non_iterable_in_funcall_starargs(self):
node = test_utils.extract_node("""
foo(*123)
""")
@@ -378,32 +378,11 @@ class IterableTest(CheckerTestCase):
self.checker.visit_call(node)
node = test_utils.extract_node("""
- args = [1, 2, 3]
- foo(**args)
- """)
- message = Message('not-a-mapping', node=node, args='args')
- with self.assertAddsMessages(message):
- self.walk(node.root())
-
- node = test_utils.extract_node("""
- kwargs = {'answer': 42}
- foo(**kwargs)
+ foo(**retdict())
""")
with self.assertNoMessages():
self.walk(node.root())
- node = test_utils.extract_node("""
- foo(**dict(a=1, b=2))
- """)
- with self.assertNoMessages():
- self.checker.visit_call(node)
-
- node = test_utils.extract_node("""
- foo(**{str(x): x for x in range(5)})
- """)
- with self.assertNoMessages():
- self.checker.visit_call(node)
-
def test_non_iterable_in_listcomp(self):
node = test_utils.extract_node("""
[x ** 2 for x in 10]