[glib: 1/2] tests: Fix code style in Python files to satisfy black and flake8
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib: 1/2] tests: Fix code style in Python files to satisfy black and flake8
- Date: Thu, 20 Oct 2022 11:59:58 +0000 (UTC)
commit 59541e335a097899f233bc66077e05062f2eef44
Author: Philip Withnall <pwithnall endlessos org>
Date: Wed Oct 19 12:28:08 2022 +0100
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>
glib/tests/assert-msg-test.py | 5 +++--
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 5e5f3fb234..825f582785 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 84370a151f..618b6bae91 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()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]