diff options
author | Philip Withnall <pwithnall@endlessos.org> | 2022-10-19 12:28:08 +0100 |
---|---|---|
committer | Philip Withnall <pwithnall@endlessos.org> | 2022-10-19 12:28:08 +0100 |
commit | 59541e335a097899f233bc66077e05062f2eef44 (patch) | |
tree | ea14842cf8927eee80f161b0ff650c4c7423a674 | |
parent | 08cb200aec399b38f0cd825340a71fe6caadfb1b (diff) | |
download | glib-59541e335a097899f233bc66077e05062f2eef44.tar.gz |
tests: Fix code style in Python files to satisfy black and flake8
This should make the style-check-diff CI job happy again.
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
-rwxr-xr-x | glib/tests/assert-msg-test.py | 5 | ||||
-rw-r--r-- | gobject/tests/gobject-query.py | 3 |
2 files changed, 4 insertions, 4 deletions
diff --git a/glib/tests/assert-msg-test.py b/glib/tests/assert-msg-test.py index 5e5f3fb23..825f58278 100755 --- a/glib/tests/assert-msg-test.py +++ b/glib/tests/assert-msg-test.py @@ -24,7 +24,6 @@ import collections import os import shutil import subprocess -import sys import tempfile import unittest @@ -151,7 +150,9 @@ class TestAssertMessage(unittest.TestCase): try: tmp.write(GDB_SCRIPT) tmp.close() - result = self.runGdbAssertMessage("-x", tmp.name, self.__assert_msg_test) + result = self.runGdbAssertMessage( + "-x", tmp.name, self.__assert_msg_test + ) finally: os.unlink(tmp.name) diff --git a/gobject/tests/gobject-query.py b/gobject/tests/gobject-query.py index 84370a151..618b6bae9 100644 --- a/gobject/tests/gobject-query.py +++ b/gobject/tests/gobject-query.py @@ -24,7 +24,6 @@ import collections import os import shutil import subprocess -import sys import unittest import taptestrunner @@ -70,7 +69,7 @@ class TestGobjectQuery(unittest.TestCase): stderr=subprocess.PIPE, env=env, text=True, - encoding='utf-8', + encoding="utf-8", ) info.check_returncode() out = info.stdout.strip() |