summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2020-05-17 23:01:11 +0200
committerChristoph Reiter <reiter.christoph@gmail.com>2020-05-17 23:01:11 +0200
commit69f2cd516a41e719de37ce8939b59f45c4ff578a (patch)
treebd831167779cbe43eee15f88def06caf8c0d62f3 /tests
parent458ae1ce3cd11ff0023995e08178a575864ae41d (diff)
downloadpygobject-69f2cd516a41e719de37ce8939b59f45c4ff578a.tar.gz
flake8: fix errors with new flake8 3.8.0
Diffstat (limited to 'tests')
-rw-r--r--tests/test_gobject.py8
-rw-r--r--tests/test_gtk_template.py4
2 files changed, 8 insertions, 4 deletions
diff --git a/tests/test_gobject.py b/tests/test_gobject.py
index bc70676b..77d788ad 100644
--- a/tests/test_gobject.py
+++ b/tests/test_gobject.py
@@ -802,8 +802,8 @@ class TestGValue(unittest.TestCase):
def test_list_properties():
- def find_param(l, name):
- for param in l:
+ def find_param(props, name):
+ for param in props:
if param.name == name:
return param
return
@@ -820,8 +820,8 @@ def test_list_properties():
props = list_props(Gio.SimpleAction)
assert find_param(props, "enabled")
- def names(l):
- return [p.name for p in l]
+ def names(props):
+ return [p.name for p in props]
assert (set(names(list_props(Gio.Action))) <=
set(names(list_props(Gio.SimpleAction))))
diff --git a/tests/test_gtk_template.py b/tests/test_gtk_template.py
index febdf705..31593f13 100644
--- a/tests/test_gtk_template.py
+++ b/tests/test_gtk_template.py
@@ -595,6 +595,7 @@ def test_template_hierarchy():
</template>
</interface>
"""
+
@Gtk.Template(string=testlabel)
class TestLabel(Gtk.Label):
@@ -613,6 +614,7 @@ def test_template_hierarchy():
</template>
</interface>
"""
+
@Gtk.Template(string=testbox)
class TestBox(Gtk.Box):
@@ -639,6 +641,7 @@ def test_template_hierarchy():
</template>
</interface>
"""
+
@Gtk.Template(string=window)
class MyWindow(Gtk.Window):
@@ -668,6 +671,7 @@ def test_multiple_init_template_calls():
</template>
</interface>
"""
+
@Gtk.Template(string=xml)
class MyBox(Gtk.Box):