Skip to content

Commit

Permalink
fix: a list comprehension is always a list
Browse files Browse the repository at this point in the history
  • Loading branch information
gforcada committed Apr 16, 2020
1 parent ddefbb1 commit fac8ea7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion run_tests.py
Expand Up @@ -579,4 +579,5 @@ def test_builtin_works_on_many_examples(source_code):
raise
tree = ast.parse(source)
checker = BuiltinsChecker(tree, '/home/script.py')
assert isinstance([c for c in checker.run()], list)
for c in checker.run():
assert isinstance(c, list)

0 comments on commit fac8ea7

Please sign in to comment.