summaryrefslogtreecommitdiff
path: root/pylint/test/unittest_checker_python3.py
diff options
context:
space:
mode:
Diffstat (limited to 'pylint/test/unittest_checker_python3.py')
-rw-r--r--pylint/test/unittest_checker_python3.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pylint/test/unittest_checker_python3.py b/pylint/test/unittest_checker_python3.py
index ee464af89..e5d6a9172 100644
--- a/pylint/test/unittest_checker_python3.py
+++ b/pylint/test/unittest_checker_python3.py
@@ -115,6 +115,11 @@ class TestPython3Checker(testutils.CheckerTestCase):
with self.assertNoMessages():
self.walk(module)
+ def as_argument_to_materialized_filter(self, callable_fn):
+ module = astroid.parse("list(filter(None, {}()))".format(callable_fn))
+ with self.assertNoMessages():
+ self.walk(module)
+
def as_argument_to_random_fxn_test(self, fxn):
checker = '{}-builtin-not-iterating'.format(fxn)
node = astroid.extract_node("""
@@ -160,6 +165,7 @@ class TestPython3Checker(testutils.CheckerTestCase):
self.as_argument_to_str_join_test(fxn)
self.as_iterable_in_unpacking(fxn)
self.as_assignment(fxn)
+ self.as_argument_to_materialized_filter(fxn)
for func in ('iter', 'list', 'tuple', 'sorted',
'set', 'sum', 'any', 'all',