From 36b17aadff52b0b8d85bab5486c57e4151ffb523 Mon Sep 17 00:00:00 2001 From: Mirko Galimberti Date: Sun, 31 Jul 2022 20:34:06 +0200 Subject: [PATCH] Fixes some E275 - assert is a keyword. (#2647) --- pythonforandroid/graph.py | 2 +- tests/test_graph.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pythonforandroid/graph.py b/pythonforandroid/graph.py index 0cb9984b8b..bdaca4349c 100644 --- a/pythonforandroid/graph.py +++ b/pythonforandroid/graph.py @@ -45,7 +45,7 @@ def get_dependency_tuple_list_for_recipe(recipe, blacklist=None): """ if blacklist is None: blacklist = set() - assert(type(blacklist) == set) + assert type(blacklist) == set if recipe.depends is None: dependencies = [] else: diff --git a/tests/test_graph.py b/tests/test_graph.py index 9cc44fc041..f7647bcac7 100644 --- a/tests/test_graph.py +++ b/tests/test_graph.py @@ -115,7 +115,7 @@ def test_get_dependency_tuple_list_for_recipe(monkeypatch): dep_list = get_dependency_tuple_list_for_recipe( r, blacklist={"libffi"} ) - assert(dep_list == [("pillow",)]) + assert dep_list == [("pillow",)] @pytest.mark.parametrize('names,bootstrap', valid_combinations)